Commit e2ad4213 authored by Leif Walsh's avatar Leif Walsh Committed by Yoni Fogel

[t:5013] don't initialize dest_val if src_val is empty in tokudb_generate_row...

[t:5013] don't initialize dest_val if src_val is empty in tokudb_generate_row on mainline too.  fixes #5013

git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@44256 c7de825b-a66e-492c-adef-691d508d4ae1
parent f9f5e2d7
...@@ -1151,11 +1151,11 @@ static inline int tokudb_generate_row( ...@@ -1151,11 +1151,11 @@ static inline int tokudb_generate_row(
desc_size = (*(u_int32_t *)row_desc) - 4; desc_size = (*(u_int32_t *)row_desc) - 4;
row_desc += 4; row_desc += 4;
if (dest_val != NULL) { if (dest_val != NULL) {
if (!is_key_clustering(row_desc, desc_size)) { if (!is_key_clustering(row_desc, desc_size) || src_val->size == 0) {
dest_val->size = 0; dest_val->size = 0;
} }
else { else {
uchar* buff = NULL; uchar* buff = NULL;
if (dest_val->flags == 0) { if (dest_val->flags == 0) {
dest_val->ulen = 0; dest_val->ulen = 0;
dest_val->size = 0; dest_val->size = 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