diff options
author | Jan Lindström <jan.lindstrom@mariadb.com> | 2016-03-11 13:36:29 +0200 |
---|---|---|
committer | Jan Lindström <jan.lindstrom@mariadb.com> | 2016-03-11 13:36:29 +0200 |
commit | 8103526b38391e41be4b410b52eed9ff1c2ea698 (patch) | |
tree | 958f9294941f3d6349cd7d72aec808230f87573b /storage/xtradb/row/row0sel.cc | |
parent | 8942824a5304e23f765b88d07498786d80092843 (diff) | |
download | mariadb-git-8103526b38391e41be4b410b52eed9ff1c2ea698.tar.gz |
MDEV-9667: Server hangs after select count(distinct name) from t2 where a=8366 and b>=5 and b<=5;
In row_search_for_mysql function on XtraDB there was a old logic
where null bytes were inited. This caused server to think that
key value is null and continue on incorrect path.
Diffstat (limited to 'storage/xtradb/row/row0sel.cc')
-rw-r--r-- | storage/xtradb/row/row0sel.cc | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/storage/xtradb/row/row0sel.cc b/storage/xtradb/row/row0sel.cc index 457e8361331..3aaf8cd5878 100644 --- a/storage/xtradb/row/row0sel.cc +++ b/storage/xtradb/row/row0sel.cc @@ -3738,12 +3738,6 @@ row_search_for_mysql( ut_error; } - /* init null bytes with default values as they might be - left uninitialized in some cases and these uninited bytes - might be copied into mysql record buffer that leads to - valgrind warnings */ - memcpy(buf, prebuilt->default_rec, prebuilt->null_bitmap_len); - #if 0 /* August 19, 2005 by Heikki: temporarily disable this error print until the cursor lock count is done correctly. |