summaryrefslogtreecommitdiff
path: root/mysys
diff options
context:
space:
mode:
authorunknown <igor@rurik.mysql.com>2003-12-09 13:29:38 -0800
committerunknown <igor@rurik.mysql.com>2003-12-09 13:29:38 -0800
commitb6df8bb66ac8eefcbea86aecb0f8c067dcbe004c (patch)
tree4fc50077940a0dabc39e9913665f20393df38b3f /mysys
parent9388c419531adee2ce0ef0113f957dc013b81d49 (diff)
downloadmariadb-git-b6df8bb66ac8eefcbea86aecb0f8c067dcbe004c.tar.gz
key_cache.result, key_cache.test, mf_keycache.c:
Fixed a wrong return code by the function init_key_cache. mysys/mf_keycache.c: Fixed a wrong return code by the function init_key_cache. mysql-test/t/key_cache.test: Fixed a wrong return code by the function init_key_cache. mysql-test/r/key_cache.result: Fixed a wrong return code by the function init_key_cache.
Diffstat (limited to 'mysys')
-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 f9b11e97f47..08737221fb2 100644
--- a/mysys/mf_keycache.c
+++ b/mysys/mf_keycache.c
@@ -391,7 +391,7 @@ int init_key_cache(KEY_CACHE *keycache, uint key_cache_block_size,
}
keycache->blocks= keycache->disk_blocks > 0 ? keycache->disk_blocks : 0;
- DBUG_RETURN((int) blocks);
+ DBUG_RETURN((int) keycache->disk_blocks);
err:
error= my_errno;