diff options
author | heikki@hundin.mysql.fi <> | 2005-06-27 11:01:03 +0300 |
---|---|---|
committer | heikki@hundin.mysql.fi <> | 2005-06-27 11:01:03 +0300 |
commit | 8414902ab6eaf468c0233d1471bc08b6d53003de (patch) | |
tree | 0c2899dcd731e9661120076298a131fee25451b5 /mysys/tree.c | |
parent | 5aa75ce7413d3594a9492088fab1e124c01b127c (diff) | |
parent | 813b0771056747472a45c1be6f1d96a009a35672 (diff) | |
download | mariadb-git-8414902ab6eaf468c0233d1471bc08b6d53003de.tar.gz |
Merge heikki@bk-internal.mysql.com:/home/bk/mysql-5.0
into hundin.mysql.fi:/home/heikki/mysql-5.0
Diffstat (limited to 'mysys/tree.c')
-rw-r--r-- | mysys/tree.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mysys/tree.c b/mysys/tree.c index bec1ec680f1..1780913961e 100644 --- a/mysys/tree.c +++ b/mysys/tree.c @@ -263,6 +263,9 @@ TREE_ELEMENT *tree_insert(TREE *tree, void *key, uint key_size, if (tree->flag & TREE_NO_DUPS) return(NULL); element->count++; + /* Avoid a wrap over of the count. */ + if (! element->count) + element->count--; } DBUG_EXECUTE("check_tree", test_rb_tree(tree->root);); return element; |