Commit 7f6651a8 authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

[t:2497], account for infinity byte

git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@18924 c7de825b-a66e-492c-adef-691d508d4ae1
parent 3d75064d
...@@ -2437,7 +2437,10 @@ u_int32_t max_key_size_from_desc( ...@@ -2437,7 +2437,10 @@ u_int32_t max_key_size_from_desc(
uchar* desc_pos = (uchar *)row_desc; uchar* desc_pos = (uchar *)row_desc;
u_int32_t num_blobs; u_int32_t num_blobs;
u_int32_t num_pk_columns; u_int32_t num_pk_columns;
u_int32_t max_size = 0; //
// start at 1 for the infinity byte
//
u_int32_t max_size = 1;
// skip byte that states if main dictionary // skip byte that states if main dictionary
bool is_main_dictionary = desc_pos[0]; bool is_main_dictionary = desc_pos[0];
......
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