summaryrefslogtreecommitdiff
path: root/include/hash.h
diff options
context:
space:
mode:
authormonty@mysql.com <>2003-11-20 22:06:25 +0200
committermonty@mysql.com <>2003-11-20 22:06:25 +0200
commit7c6113a39f56832da982cfb4ff191e9db49ca798 (patch)
tree685b3a2a60fc00121d338cb0b5f84b4cd028bfe1 /include/hash.h
parentba659679e7816cd9c992c866645f65b06e5f69de (diff)
downloadmariadb-git-7c6113a39f56832da982cfb4ff191e9db49ca798.tar.gz
Merge key cache structures to one
Fixed compiler warnings (IRIX C compiler and VC++)
Diffstat (limited to 'include/hash.h')
-rw-r--r--include/hash.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/include/hash.h b/include/hash.h
index 3c2ae32c70e..c7cc118b7bd 100644
--- a/include/hash.h
+++ b/include/hash.h
@@ -22,14 +22,15 @@
extern "C" {
#endif
+/*
+ Overhead to store an element in hash
+ Can be used to approximate memory consumption for a hash
+ */
+#define HASH_OVERHEAD (sizeof(char*)*2)
+
typedef byte *(*hash_get_key)(const byte *,uint*,my_bool);
typedef void (*hash_free_key)(void *);
-typedef struct st_hash_info {
- uint next; /* index to next key */
- byte *data; /* data for current entry */
-} HASH_LINK;
-
typedef struct st_hash {
uint key_offset,key_length; /* Length of key if const length */
uint records,blength,current_record;