From 68fa3324e835ab1ec6764c916fd2c0d987791d54 Mon Sep 17 00:00:00 2001 From: Zardosht Kasheff <zardosht@tokutek.com> Date: Wed, 23 Nov 2011 21:36:29 +0000 Subject: [PATCH] [t:4175], fix calculation of data_size git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@37247 c7de825b-a66e-492c-adef-691d508d4ae1 --- storage/tokudb/ha_tokudb.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/tokudb/ha_tokudb.cc b/storage/tokudb/ha_tokudb.cc index 18d461b7fc..9807fecfe6 100644 --- a/storage/tokudb/ha_tokudb.cc +++ b/storage/tokudb/ha_tokudb.cc @@ -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); -- 2.30.9