summaryrefslogtreecommitdiff
path: root/mysys/mf_keycache.c
diff options
context:
space:
mode:
Diffstat (limited to 'mysys/mf_keycache.c')
-rw-r--r--mysys/mf_keycache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mysys/mf_keycache.c b/mysys/mf_keycache.c
index 253707853fd..4e22b3f65a2 100644
--- a/mysys/mf_keycache.c
+++ b/mysys/mf_keycache.c
@@ -5180,8 +5180,8 @@ int init_partitioned_key_cache(PARTITIONED_KEY_CACHE_CB *keycache,
keycache->partition_array= partition_ptr;
}
- mem_decr= mem_per_cache / 5;
mem_per_cache = use_mem / partitions;
+ mem_decr= mem_per_cache / 5;
for (i= 0; i < (int) partitions; i++)
{