Commit 91575d1f authored by Sergei Golubchik's avatar Sergei Golubchik

first initialize variable, then use it, not the other way around

parent e44633c8
......@@ -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++)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment