summaryrefslogtreecommitdiff
path: root/mysys/lf_hash.c
diff options
context:
space:
mode:
authorSergey Vojtovich <svoj@mariadb.org>2015-03-04 11:01:32 +0400
committerSergey Vojtovich <svoj@mariadb.org>2015-03-04 13:34:53 +0400
commitf4f37533a09b9776e8d5ac3f3a27957f553c9043 (patch)
treed9f0babc06421f7fa9c1d0a67eb73c821da2cd26 /mysys/lf_hash.c
parent5c6aa4dea00c4e289491dfa717a25b56ec9441c2 (diff)
downloadmariadb-git-f4f37533a09b9776e8d5ac3f3a27957f553c9043.tar.gz
Replaced lf-hash element_size hack with initializer function.
Diffstat (limited to 'mysys/lf_hash.c')
-rw-r--r--mysys/lf_hash.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/mysys/lf_hash.c b/mysys/lf_hash.c
index db84d1fba08..7bced68d34d 100644
--- a/mysys/lf_hash.c
+++ b/mysys/lf_hash.c
@@ -336,7 +336,6 @@ static void default_initializer(LF_HASH *hash, void *dst, const void *src)
is expensive to initialize - for example if there is a mutex or
DYNAMIC_ARRAY. In this case they should be initialize in the
LF_ALLOCATOR::constructor, and lf_hash_insert should not overwrite them.
- See wt_init() for example.
The above works well with PODS. For more complex cases (e.g. C++ classes
with private members) use initializer function.