summaryrefslogtreecommitdiff
path: root/myisam/mi_open.c
diff options
context:
space:
mode:
authorunknown <monty@hundin.mysql.fi>2002-06-17 12:34:19 +0300
committerunknown <monty@hundin.mysql.fi>2002-06-17 12:34:19 +0300
commitc99fd2caef34cab1677f44cb5c2337d7f6a5c8db (patch)
tree7fb8a56e8b7982117d32b33392e0f6e1bc56a477 /myisam/mi_open.c
parentc47044f0aeede93e17a73cdc221ca6e38cd3f125 (diff)
downloadmariadb-git-c99fd2caef34cab1677f44cb5c2337d7f6a5c8db.tar.gz
Ensure that share->tot_locks s updated correctly
This fixes that mysamchk --sort-records works on windows. myisam/mi_check.c: Ensure that share->tot_locks s updated correctly myisam/mi_close.c: Ensure that share->tot_locks s updated correctly myisam/mi_dynrec.c: Ensure that share->tot_locks s updated correctly myisam/mi_open.c: Ensure that share->tot_locks s updated correctly myisam/mi_statrec.c: Ensure that share->tot_locks s updated correctly myisam/myisamchk.c: Ensure that share->tot_locks s updated correctly
Diffstat (limited to 'myisam/mi_open.c')
-rw-r--r--myisam/mi_open.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/myisam/mi_open.c b/myisam/mi_open.c
index bcf8369b439..e36a52db92b 100644
--- a/myisam/mi_open.c
+++ b/myisam/mi_open.c
@@ -486,6 +486,7 @@ MI_INFO *mi_open(const char *name, int mode, uint open_flags)
{
info.lock_type=F_RDLCK;
share->r_locks++;
+ share->tot_locks++;
}
if ((open_flags & HA_OPEN_TMP_TABLE) ||
(share->options & HA_OPTION_TMP_TABLE))
@@ -493,6 +494,7 @@ MI_INFO *mi_open(const char *name, int mode, uint open_flags)
share->temporary=share->delay_key_write=1;
share->write_flag=MYF(MY_NABP);
share->w_locks++; /* We don't have to update status */
+ share->tot_locks++;
info.lock_type=F_WRLCK;
}
if (((open_flags & HA_OPEN_DELAY_KEY_WRITE) ||