diff options
author | monty@mysql.com <> | 2003-11-20 22:06:25 +0200 |
---|---|---|
committer | monty@mysql.com <> | 2003-11-20 22:06:25 +0200 |
commit | 7c6113a39f56832da982cfb4ff191e9db49ca798 (patch) | |
tree | 685b3a2a60fc00121d338cb0b5f84b4cd028bfe1 /mysys/hash.c | |
parent | ba659679e7816cd9c992c866645f65b06e5f69de (diff) | |
download | mariadb-git-7c6113a39f56832da982cfb4ff191e9db49ca798.tar.gz |
Merge key cache structures to one
Fixed compiler warnings (IRIX C compiler and VC++)
Diffstat (limited to 'mysys/hash.c')
-rw-r--r-- | mysys/hash.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mysys/hash.c b/mysys/hash.c index 516fa171d7c..665e3d11e8d 100644 --- a/mysys/hash.c +++ b/mysys/hash.c @@ -29,6 +29,11 @@ #define HIGHFIND 4 #define HIGHUSED 8 +typedef struct st_hash_info { + uint next; /* index to next key */ + byte *data; /* data for current entry */ +} HASH_LINK; + static uint hash_mask(uint hashnr,uint buffmax,uint maxlength); static void movelink(HASH_LINK *array,uint pos,uint next_link,uint newlink); static int hashcmp(HASH *hash,HASH_LINK *pos,const byte *key,uint length); |