summaryrefslogtreecommitdiff
path: root/include/hash.h
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2016-12-19 22:25:42 +0200
committerMonty <monty@mariadb.org>2017-01-11 09:18:35 +0200
commite80ad58de8bce0923b91c08d12959c42e9e213a5 (patch)
tree7ae996948789a746e3be93f9f645fd0e0c7a1e4c /include/hash.h
parent67034b6d5265621d67ce589cdee537571ccacfa9 (diff)
downloadmariadb-git-e80ad58de8bce0923b91c08d12959c42e9e213a5.tar.gz
Improve mysys/hash by caching hash_nr
This is done without using any additional memory Added internal test case This is similar to MDEV-7716
Diffstat (limited to 'include/hash.h')
-rw-r--r--include/hash.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hash.h b/include/hash.h
index fde7fc30d38..892922d81a3 100644
--- a/include/hash.h
+++ b/include/hash.h
@@ -42,7 +42,7 @@ extern "C" {
#define HASH_UNIQUE 1 /* hash_insert fails on duplicate key */
#define HASH_THREAD_SPECIFIC 2 /* Mark allocated memory THREAD_SPECIFIC */
-typedef uint my_hash_value_type;
+typedef uint32 my_hash_value_type;
typedef uchar *(*my_hash_get_key)(const uchar *,size_t*,my_bool);
typedef my_hash_value_type (*my_hash_function)(CHARSET_INFO *,
const uchar *, size_t);