summaryrefslogtreecommitdiff
path: root/myisam/mi_locking.c
diff options
context:
space:
mode:
authorunknown <igor@rurik.mysql.com>2003-10-01 18:20:07 -0700
committerunknown <igor@rurik.mysql.com>2003-10-01 18:20:07 -0700
commit7de7c38f2f1b678e6d1894b94dd9abe9de9d8c70 (patch)
treeab4010966244b960fcb1389f9520f9dc880f6c8e /myisam/mi_locking.c
parent5a85cb66be2dd3562f042d2ef08a1b2382c713e8 (diff)
downloadmariadb-git-7de7c38f2f1b678e6d1894b94dd9abe9de9d8c70.tar.gz
Many files:
Improved concurrency for key cache reassignment include/my_sys.h: Improved concurrency for key cache reassignment include/myisam.h: Improved concurrency for key cache reassignment myisam/mi_keycache.c: Improved concurrency for key cache reassignment myisam/mi_locking.c: Improved concurrency for key cache reassignment mysys/mf_keycache.c: Improved concurrency for key cache reassignment sql/ha_myisam.cc: Improved concurrency for key cache reassignment sql/sql_table.cc: Improved concurrency for key cache reassignment
Diffstat (limited to 'myisam/mi_locking.c')
-rw-r--r--myisam/mi_locking.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/myisam/mi_locking.c b/myisam/mi_locking.c
index 14d0b60741f..af0c760b706 100644
--- a/myisam/mi_locking.c
+++ b/myisam/mi_locking.c
@@ -62,17 +62,12 @@ int mi_lock_database(MI_INFO *info, int lock_type)
/*
During a key cache reassignment the current and registered
key caches for the table are different.
- Although at present key cache ressignment is always
- performed with a shared cache for the table acquired,
- for future possible optimizations we still
- handle this situation as if we could come to this point
- during the ressignment (in non-reassignment thread).
*/
if (info->lock_type == F_WRLCK && !share->w_locks &&
((switch_fl= share->keycache != share->reg_keycache) ||
!share->delay_key_write) &&
flush_key_blocks(*share->keycache, share->kfile,
- switch_fl ? FLUSH_RELEASE : FLUSH_KEEP))
+ switch_fl ? FLUSH_REMOVE : FLUSH_KEEP))
{
error=my_errno;
mi_mark_crashed(info); /* Mark that table must be checked */