Commit 68fa3324 authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

[t:4175], fix calculation of data_size

git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@37247 c7de825b-a66e-492c-adef-691d508d4ae1
parent 81cd7bb6
......@@ -4911,7 +4911,7 @@ int ha_tokudb::fill_range_query_buf(
var_field_data_ptr,
share->kc_info.num_offset_bytes
);
data_size = row->size - (u_int32_t)(var_field_data_ptr - (const uchar *)row->data);
data_size = row->size - blob_offset - (u_int32_t)(var_field_data_ptr - (const uchar *)row->data);
memcpy(curr_pos, &data_size, sizeof(data_size));
curr_pos += sizeof(data_size);
memcpy(curr_pos, var_field_data_ptr + blob_offset, data_size);
......
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