summaryrefslogtreecommitdiff
path: root/mysys
diff options
context:
space:
mode:
authorGeorgi Kodinov <joro@sun.com>2009-11-23 17:32:10 +0200
committerGeorgi Kodinov <joro@sun.com>2009-11-23 17:32:10 +0200
commitd4db598110fbf2a4ae92a7d4549e9f7f11fa42a6 (patch)
treefb83df1a88e84fa5f6c6bc53e36acbca429b8a9f /mysys
parent1dd478247292ba7518a6e11e3b95755fc509e460 (diff)
downloadmariadb-git-d4db598110fbf2a4ae92a7d4549e9f7f11fa42a6.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.c1
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)
{