diff options
author | Sergei Golubchik <sergii@pisem.net> | 2010-05-27 23:30:37 +0200 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2010-05-27 23:30:37 +0200 |
commit | 91575d1fae252efec924ea03619141b742b1075a (patch) | |
tree | 56c1de9ef3b8917c00155aeff9462d4b738f44af /mysys/mf_keycache.c | |
parent | e44633c8778354e5f9f71dd7e66fa972f9caeed0 (diff) | |
download | mariadb-git-91575d1fae252efec924ea03619141b742b1075a.tar.gz |
first initialize variable, then use it, not the other way around
Diffstat (limited to 'mysys/mf_keycache.c')
-rw-r--r-- | mysys/mf_keycache.c | 2 |
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++) { |