summaryrefslogtreecommitdiff
path: root/sql/ha_myisam.cc
diff options
context:
space:
mode:
authorunknown <petr/cps@owlet.>2006-08-04 14:48:51 +0400
committerunknown <petr/cps@owlet.>2006-08-04 14:48:51 +0400
commit79b03c66bf6b216658d9c8ac9b32cb49b6ee31e7 (patch)
tree36b4f6456529bdb18398792a9f4a58eb790d4c8e /sql/ha_myisam.cc
parente1ec4de43f3fd812acee1f7c197cd73c929f7675 (diff)
parent157c42de9713618c23116079f634fa8b54fd403e (diff)
downloadmariadb-git-79b03c66bf6b216658d9c8ac9b32cb49b6ee31e7.tar.gz
Merge pchardin@bk-internal.mysql.com:/home/bk/mysql-5.1-runtime
into mysql.com:/home/cps/mysql/devel/5.1-curs-bug sql/ha_myisam.cc: Auto merged sql/handler.h: Auto merged sql/sql_table.cc: Auto merged mysql-test/r/log_tables.result: SCCS merged mysql-test/t/log_tables.test: SCCS merged
Diffstat (limited to 'sql/ha_myisam.cc')
-rw-r--r--sql/ha_myisam.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/sql/ha_myisam.cc b/sql/ha_myisam.cc
index 2acc1f4ed7d..565010a1889 100644
--- a/sql/ha_myisam.cc
+++ b/sql/ha_myisam.cc
@@ -274,6 +274,15 @@ bool ha_myisam::check_if_locking_is_allowed(uint sql_command,
table->s->table_name.str);
return FALSE;
}
+
+ /*
+ Deny locking of the log tables, which is incompatible with
+ concurrent insert. Unless called from a logger THD:
+ general_log_thd or slow_log_thd.
+ */
+ if (!called_by_logger_thread)
+ return check_if_log_table_locking_is_allowed(sql_command, type, table);
+
return TRUE;
}