diff options
Diffstat (limited to 'myisam/mi_extra.c')
-rw-r--r-- | myisam/mi_extra.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/myisam/mi_extra.c b/myisam/mi_extra.c index b9ded70402a..b90b5b35780 100644 --- a/myisam/mi_extra.c +++ b/myisam/mi_extra.c @@ -241,6 +241,8 @@ int mi_extra(MI_INFO *info, enum ha_extra_function function) error=my_errno; info->lock_type = F_UNLCK; } + if (share->kfile >= 0) + _mi_decrement_open_count(info); if (share->kfile >= 0 && my_close(share->kfile,MYF(0))) error=my_errno; { |