summaryrefslogtreecommitdiff
path: root/myisam/mi_close.c
diff options
context:
space:
mode:
authorunknown <monty@donna.mysql.com>2000-09-26 22:39:45 +0300
committerunknown <monty@donna.mysql.com>2000-09-26 22:39:45 +0300
commitb31f06a74efdfb790e139dae2fc0fb54bc2341b6 (patch)
treeea6dbe861611447827a284bc7e8a9fafd9222d6d /myisam/mi_close.c
parentf0c7c8384123639570f2bc61b7e2c806a386e780 (diff)
downloadmariadb-git-b31f06a74efdfb790e139dae2fc0fb54bc2341b6.tar.gz
Small fixes for release
Docs/manual.texi: Update of file limits on windows myisam/mi_close.c: Fix for alter table on windows myisam/mi_extra.c: Fix for alter table on windows myisam/myisamlog.c: Corrected statistics information sql-bench/limits/mysql-3.23.cfg: Update to new crash-me sql-bench/limits/mysql.cfg: Update to new crash-me sql/sql_base.cc: Fix if end of memory sql/table.cc: Fix of new introduced index-handling bug
Diffstat (limited to 'myisam/mi_close.c')
-rw-r--r--myisam/mi_close.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/myisam/mi_close.c b/myisam/mi_close.c
index ebd64aa2349..059e7d3223a 100644
--- a/myisam/mi_close.c
+++ b/myisam/mi_close.c
@@ -36,7 +36,7 @@ int mi_close(register MI_INFO *info)
if (info->lock_type == F_EXTRA_LCK)
info->lock_type=F_UNLCK; /* HA_EXTRA_NO_USER_CHANGE */
- if (share->reopen == 1)
+ if (share->reopen == 1 && share->kfile >= 0)
_mi_decrement_open_count(info);
if (info->lock_type != F_UNLCK)