summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorKristofer Pettersson <kristofer.pettersson@sun.com>2010-03-25 13:26:48 +0100
committerKristofer Pettersson <kristofer.pettersson@sun.com>2010-03-25 13:26:48 +0100
commit61b9ce16fd9dcf180fa8109682b75b1494bf09ee (patch)
tree95859f02174fee49bc73ec902502aabc7d0b375f /sql
parent5a9bad95a9c2db05f2e10b432ef52f5dc65e9b9b (diff)
parentea7d830ad2c5715597d2d7e55215263f0fd8ba7c (diff)
downloadmariadb-git-61b9ce16fd9dcf180fa8109682b75b1494bf09ee.tar.gz
Automerge
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 */