summaryrefslogtreecommitdiff
path: root/include/lf.h
diff options
context:
space:
mode:
authorSergey Vojtovich <svoj@mariadb.org>2015-02-27 00:01:38 +0400
committerSergey Vojtovich <svoj@mariadb.org>2015-03-04 13:34:53 +0400
commitd9e3a9f20e59142666c72c7fb876fbf05b0cf510 (patch)
treedd432a0e2f99ece54907cfe56724be8cac1e9238 /include/lf.h
parent9c8165fdb46737c5a7205849e9197c4d35f7b5d8 (diff)
downloadmariadb-git-d9e3a9f20e59142666c72c7fb876fbf05b0cf510.tar.gz
MDEV-6089 - MySQL WL#7305 "Improve MDL scalability by using lock-free hash"
Extended lf-hash implementation to accept user defined hash function.
Diffstat (limited to 'include/lf.h')
-rw-r--r--include/lf.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/lf.h b/include/lf.h
index c37b7ebf567..88024bc4d67 100644
--- a/include/lf.h
+++ b/include/lf.h
@@ -143,6 +143,7 @@ struct st_lf_hash {
LF_ALLOCATOR alloc; /* allocator for elements */
my_hash_get_key get_key; /* see HASH */
lf_hash_initializer initializer; /* called when an element is inserted */
+ my_hash_function hash_function; /* see HASH */
CHARSET_INFO *charset; /* see HASH */
uint key_offset, key_length; /* see HASH */
uint element_size; /* size of memcpy'ed area on insert */