diff options
author | Sergei Golubchik <serg@mysql.com> | 2008-11-03 20:33:34 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mysql.com> | 2008-11-03 20:33:34 +0100 |
commit | f91219ed47604ac80c378bd917431fa42e4cb1d9 (patch) | |
tree | 6ed02d819c875200438461a38fdc8491b02c89db /mysys/lf_hash.c | |
parent | ca4d512aa46df2f231940d20f1b94b8409a7c691 (diff) | |
download | mariadb-git-f91219ed47604ac80c378bd917431fa42e4cb1d9.tar.gz |
don't use #pragma pack
include/waiting_threads.h:
don't #pragma pack
mysys/lf_hash.c:
typo in a comment
mysys/waiting_threads.c:
use the size of data, not the size of (possibly padded) structure
Diffstat (limited to 'mysys/lf_hash.c')
-rw-r--r-- | mysys/lf_hash.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mysys/lf_hash.c b/mysys/lf_hash.c index 008abef0c8b..96ae3f338ab 100644 --- a/mysys/lf_hash.c +++ b/mysys/lf_hash.c @@ -281,8 +281,9 @@ static inline const uchar* hash_key(const LF_HASH *hash, } /* - compute the hash key value from the raw key. - note, that the hash value is limited to 2^31, because we need one + Compute the hash key value from the raw key. + + @note, that the hash value is limited to 2^31, because we need one bit to distinguish between normal and dummy nodes. */ static inline uint calc_hash(LF_HASH *hash, const uchar *key, uint keylen) @@ -300,7 +301,7 @@ static int initialize_bucket(LF_HASH *, LF_SLIST * volatile*, uint, LF_PINS *); /* Initializes lf_hash, the arguments are compatible with hash_init - @@note element_size sets both the size of allocated memory block for + @note element_size sets both the size of allocated memory block for lf_alloc and a size of memcpy'ed block size in lf_hash_insert. Typically they are the same, indeed. But LF_HASH::element_size can be decreased after lf_hash_init, and then lf_alloc will allocate larger block that |