summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorAlexey Botchkov <holyfoot@mysql.com>2010-03-24 16:14:47 +0400
committerAlexey Botchkov <holyfoot@mysql.com>2010-03-24 16:14:47 +0400
commitf3b8b07a432e2aa449a5b8dc306f8de6bc62fcef (patch)
treeb221d6ddffa85a6f3b1dd274676b5343ae917b0f /sql
parent9a9501c2aafd6766883ad75936f81a1f2604267e (diff)
parent61b9ce16fd9dcf180fa8109682b75b1494bf09ee (diff)
downloadmariadb-git-f3b8b07a432e2aa449a5b8dc306f8de6bc62fcef.tar.gz
merging.
Diffstat (limited to 'sql')
-rw-r--r--sql/sql_parse.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc
index 168b16c61bf..5228a37f490 100644
--- a/sql/sql_parse.cc
+++ b/sql/sql_parse.cc
@@ -3241,7 +3241,7 @@ end_with_restore_list:
TODO: this is workaround. right way will be move invalidating in
the unlock procedure.
*/
- if (first_table->lock_type == TL_WRITE_CONCURRENT_INSERT &&
+ if (!res && first_table->lock_type == TL_WRITE_CONCURRENT_INSERT &&
thd->lock)
{
/* INSERT ... SELECT should invalidate only the very first table */