summaryrefslogtreecommitdiff
path: root/myisam
diff options
context:
space:
mode:
authormonty@donna.mysql.com <>2000-11-27 02:28:41 +0200
committermonty@donna.mysql.com <>2000-11-27 02:28:41 +0200
commitdc5e32ea40b435c13cb2d9c03e465743aff14b51 (patch)
treeedb54aec005b494e1195e3b4c62ef7b81153a705 /myisam
parent8e3322098ac94687ab13aec1a09e8ed2ce93ef9c (diff)
downloadmariadb-git-dc5e32ea40b435c13cb2d9c03e465743aff14b51.tar.gz
Added connect_timeout and fix for transactions per statement
Diffstat (limited to 'myisam')
-rw-r--r--myisam/mi_check.c2
-rw-r--r--myisam/mi_create.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/myisam/mi_check.c b/myisam/mi_check.c
index a38a45f9438..ec9320f6104 100644
--- a/myisam/mi_check.c
+++ b/myisam/mi_check.c
@@ -108,7 +108,7 @@ int chk_status(MI_CHECK *param, register MI_INFO *info)
else if (mi_is_crashed(info))
mi_check_print_warning(param,
"Table is marked as crashed");
- if (share->state.open_count)
+ if (share->state.open_count != (info->s->global_changed ? 1 : 0))
{
mi_check_print_warning(param,
"%d clients is using or hasn't closed the table properly",
diff --git a/myisam/mi_create.c b/myisam/mi_create.c
index 89bdcdf3fbc..92aef5e25de 100644
--- a/myisam/mi_create.c
+++ b/myisam/mi_create.c
@@ -465,7 +465,7 @@ int mi_create(const char *name,uint keys,MI_KEYDEF *keydefs,
share.state.create_time= (long) time((time_t*) 0);
if ((file = my_create(fn_format(buff,name,"",MI_NAME_IEXT,4),0,
- O_RDWR | O_TRUNC,MYF(MY_WME))) < 0)
+ O_RDWR | O_TRUNC,MYF(MY_WME))) < 0)
goto err;
errpos=1;
VOID(fn_format(buff,name,"",MI_NAME_DEXT,2+4));