summaryrefslogtreecommitdiff
path: root/isam/close.c
diff options
context:
space:
mode:
Diffstat (limited to 'isam/close.c')
-rw-r--r--isam/close.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/isam/close.c b/isam/close.c
index f1465990100..37b35e450ae 100644
--- a/isam/close.c
+++ b/isam/close.c
@@ -56,7 +56,8 @@ int nisam_close(register N_INFO *info)
if (flag)
{
- if (share->kfile >= 0 && flush_key_blocks(share->kfile,FLUSH_RELEASE))
+ if (share->kfile >= 0 &&
+ flush_key_blocks(*dflt_keycache,share->kfile,FLUSH_RELEASE))
error=my_errno;
if (share->kfile >= 0 && my_close(share->kfile,MYF(0)))
error = my_errno;