summaryrefslogtreecommitdiff
path: root/myisam/mi_locking.c
diff options
context:
space:
mode:
authorigor@rurik.mysql.com <>2003-06-30 09:41:41 -0700
committerigor@rurik.mysql.com <>2003-06-30 09:41:41 -0700
commit10a8adc1b5b850f0001e038ba816641ecf7bddf9 (patch)
tree44574656fb0c8810963e2afccae4c1d98fc12d0b /myisam/mi_locking.c
parent4c7714b7f98a072a20655f029753c648362ac43c (diff)
downloadmariadb-git-10a8adc1b5b850f0001e038ba816641ecf7bddf9.tar.gz
Many files:
Added multiple key cache
Diffstat (limited to 'myisam/mi_locking.c')
-rw-r--r--myisam/mi_locking.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/myisam/mi_locking.c b/myisam/mi_locking.c
index cbde05d31f5..7ede4852ccd 100644
--- a/myisam/mi_locking.c
+++ b/myisam/mi_locking.c
@@ -51,7 +51,8 @@ int mi_lock_database(MI_INFO *info, int lock_type)
count= --share->w_locks;
--share->tot_locks;
if (info->lock_type == F_WRLCK && !share->w_locks &&
- !share->delay_key_write && flush_key_blocks(share->kfile,FLUSH_KEEP))
+ !share->delay_key_write &&
+ flush_key_blocks(dflt_keycache,share->kfile,FLUSH_KEEP))
{
error=my_errno;
mi_mark_crashed(info); /* Mark that table must be checked */
@@ -385,7 +386,7 @@ int _mi_test_if_changed(register MI_INFO *info)
{ /* Keyfile has changed */
DBUG_PRINT("info",("index file changed"));
if (share->state.process != share->this_process)
- VOID(flush_key_blocks(share->kfile,FLUSH_RELEASE));
+ VOID(flush_key_blocks(dflt_keycache,share->kfile,FLUSH_RELEASE));
share->last_process=share->state.process;
info->last_unique= share->state.unique;
info->last_loop= share->state.update_count;