Commit 9d1f31fb authored by Igor Babaev's avatar Igor Babaev

Fixed a valgrind warning:

reverted the change done for WL 4443.
parent 19b8f1ee
...@@ -3985,7 +3985,7 @@ bool prune_partitions(THD *thd, TABLE *table, Item *pprune_cond) ...@@ -3985,7 +3985,7 @@ bool prune_partitions(THD *thd, TABLE *table, Item *pprune_cond)
'UPDATE t SET part_key = const WHERE cond_is_prunable' so it adds 'UPDATE t SET part_key = const WHERE cond_is_prunable' so it adds
a lock for part_key partition. 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)) !partition_key_modified(table, table->write_set))
{ {
bitmap_copy(&prune_param.part_info->lock_partitions, bitmap_copy(&prune_param.part_info->lock_partitions,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment