summaryrefslogtreecommitdiff
path: root/sql/opt_range.cc
diff options
context:
space:
mode:
authorIgor Babaev <igor@askmonty.org>2013-08-05 13:52:53 -0700
committerIgor Babaev <igor@askmonty.org>2013-08-05 13:52:53 -0700
commit9d1f31fb4b9f4822146ddab626a470f085ec866f (patch)
treebcd5ebd87b72a43bb5d47b360c712abd8342c2c5 /sql/opt_range.cc
parent19b8f1ee886d8f45592dc0d1b7964978897f0499 (diff)
downloadmariadb-git-9d1f31fb4b9f4822146ddab626a470f085ec866f.tar.gz
Fixed a valgrind warning:
reverted the change done for WL 4443.
Diffstat (limited to 'sql/opt_range.cc')
-rw-r--r--sql/opt_range.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/opt_range.cc b/sql/opt_range.cc
index 95e63a2e7b2..8d959e8028a 100644
--- a/sql/opt_range.cc
+++ b/sql/opt_range.cc
@@ -3985,7 +3985,7 @@ end:
'UPDATE t SET part_key = const WHERE cond_is_prunable' so it adds
a lock for part_key partition.
*/
- if (!thd->lex->is_query_tables_locked() &&
+ if (table->file->get_lock_type() == F_UNLCK &&
!partition_key_modified(table, table->write_set))
{
bitmap_copy(&prune_param.part_info->lock_partitions,