Commit 83d710e8 authored by He Zhenxing's avatar He Zhenxing

auto merge

parents 0b9d0592 87bedb59
...@@ -35,8 +35,6 @@ int mi_close(register MI_INFO *info) ...@@ -35,8 +35,6 @@ int mi_close(register MI_INFO *info)
if (info->lock_type == F_EXTRA_LCK) if (info->lock_type == F_EXTRA_LCK)
info->lock_type=F_UNLCK; /* HA_EXTRA_NO_USER_CHANGE */ info->lock_type=F_UNLCK; /* HA_EXTRA_NO_USER_CHANGE */
if (share->reopen == 1 && share->kfile >= 0)
_mi_decrement_open_count(info);
if (info->lock_type != F_UNLCK) if (info->lock_type != F_UNLCK)
{ {
...@@ -78,6 +76,8 @@ int mi_close(register MI_INFO *info) ...@@ -78,6 +76,8 @@ int mi_close(register MI_INFO *info)
*/ */
if (share->mode != O_RDONLY && mi_is_crashed(info)) if (share->mode != O_RDONLY && mi_is_crashed(info))
mi_state_info_write(share->kfile, &share->state, 1); mi_state_info_write(share->kfile, &share->state, 1);
/* Decrement open count must be last I/O on this file. */
_mi_decrement_open_count(info);
if (my_close(share->kfile,MYF(0))) if (my_close(share->kfile,MYF(0)))
error = my_errno; error = my_errno;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment