diff options
author | Georgi Kodinov <joro@sun.com> | 2009-11-23 17:32:10 +0200 |
---|---|---|
committer | Georgi Kodinov <joro@sun.com> | 2009-11-23 17:32:10 +0200 |
commit | b75392782c06035b23009fe6a712d7e990bd60d5 (patch) | |
tree | fb83df1a88e84fa5f6c6bc53e36acbca429b8a9f /mysys | |
parent | 0e35382391f0f61298ce5f393f4a6477576af02b (diff) | |
download | mariadb-git-b75392782c06035b23009fe6a712d7e990bd60d5.tar.gz |
Additional fix for bug #45613: handle failures from my_hash_insert
Testing for presence of stuff in a hash inside the function
that's filling in the hash creates chicken-and-egg type of problems.
This results in test suite failures in mysql-pe in debug mode and
adds bad initialization dependency in 5.1.
Fixed by removing the debug code.
Diffstat (limited to 'mysys')
-rw-r--r-- | mysys/hash.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/mysys/hash.c b/mysys/hash.c index 48ac122fa34..9c1957bf0aa 100644 --- a/mysys/hash.c +++ b/mysys/hash.c @@ -334,7 +334,6 @@ my_bool my_hash_insert(HASH *info, const uchar *record) size_t idx,halfbuff,hash_nr,first_index; uchar *UNINIT_VAR(ptr_to_rec),*UNINIT_VAR(ptr_to_rec2); HASH_LINK *data,*empty,*UNINIT_VAR(gpos),*UNINIT_VAR(gpos2),*pos; - DBUG_EXECUTE("fail_hash_insert",return(TRUE);); if (HASH_UNIQUE & info->flags) { |