summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorunknown <ram@gw.udmsearch.izhnet.ru>2002-05-28 20:46:35 +0500
committerunknown <ram@gw.udmsearch.izhnet.ru>2002-05-28 20:46:35 +0500
commitc78685e0c27fd15933a1aaf2733c4035aadf4e0d (patch)
treeaab3730731dbe350743bccbc64d54ce36728f718 /include
parentc1f3be5bb5f70e5d0376f258b79ccffa5b2d9c2b (diff)
downloadmariadb-git-c78685e0c27fd15933a1aaf2733c4035aadf4e0d.tar.gz
Removed unnecessary key search in the hp_rb_write_key() function
Diffstat (limited to 'include')
-rw-r--r--include/my_tree.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/my_tree.h b/include/my_tree.h
index 826c2b7c808..bfe441f54a6 100644
--- a/include/my_tree.h
+++ b/include/my_tree.h
@@ -27,6 +27,8 @@ extern "C" {
#define tree_set_pointer(element,ptr) *((byte **) (element+1))=((byte*) (ptr))
+#define TREE_NO_DUPS 1
+
typedef enum { left_root_right, right_root_left } TREE_WALK;
typedef uint32 element_count;
typedef int (*tree_walk_action)(void *,element_count,void *);
@@ -55,10 +57,11 @@ typedef struct st_tree {
TREE_ELEMENT **parents[MAX_TREE_HEIGHT];
uint offset_to_key,elements_in_tree,size_of_element,memory_limit,allocated;
qsort_cmp2 compare;
- void* custom_arg;
+ void *custom_arg;
MEM_ROOT mem_root;
my_bool with_delete;
tree_element_free free;
+ uint flag;
} TREE;
/* Functions on whole tree */