Commit 73547bc2 authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

addresses #1171

fix length of buffer for primary_key

git-svn-id: file:///svn/mysql/tokudb-engine/src@6252 c7de825b-a66e-492c-adef-691d508d4ae1
parent 25244c4d
......@@ -1234,7 +1234,7 @@ int ha_tokudb::open(const char *name, int mode, uint test_if_locked) {
my_multi_malloc(MYF(MY_WME),
&key_buff, max_key_length,
&key_buff2, max_key_length,
&primary_key_buff, (hidden_primary_key ? 0 : table_share->key_info[table_share->primary_key].key_length),
&primary_key_buff, (hidden_primary_key ? 0 : table_share->key_info[table_share->primary_key].key_length + sizeof(uchar)),
NullS)))
TOKUDB_DBUG_RETURN(1);
if (!(rec_buff = (uchar *) my_malloc((alloced_rec_buff_length = table_share->rec_buff_length), MYF(MY_WME)))) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment