diff options
author | ingo@mysql.com <> | 2005-06-24 19:34:55 +0200 |
---|---|---|
committer | ingo@mysql.com <> | 2005-06-24 19:34:55 +0200 |
commit | e81358565b71f3383d2f610c1583443884175ab1 (patch) | |
tree | 06751ebaff6c1ac08ddbb34769995d84ac9ea2ed /mysys/tree.c | |
parent | c9de0b15f2008062fff7e6a35b396a9f7581fe6d (diff) | |
download | mariadb-git-e81358565b71f3383d2f610c1583443884175ab1.tar.gz |
Bug#8321 - myisampack bug in compression algorithm
Added 64-bit extensions, comments, extended statistics
and trace prints.
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; |