[Commits] Rev 3816: Fixed a valgrind warning: in file:///home/igor/maria/maria-10.0-serg/

Igor Babaev igor at askmonty.org
Mon Aug 5 23:52:53 EEST 2013


At file:///home/igor/maria/maria-10.0-serg/

------------------------------------------------------------
revno: 3816
revision-id: igor at askmonty.org-20130805205253-v50qbd4bavwmb2z5
parent: igor at askmonty.org-20130805141607-7fmq996gngriw72q
committer: Igor Babaev <igor at askmonty.org>
branch nick: maria-10.0-serg
timestamp: Mon 2013-08-05 13:52:53 -0700
message:
  Fixed a valgrind warning:
  reverted the change done for WL 4443.
-------------- next part --------------
=== modified file 'sql/opt_range.cc'
--- a/sql/opt_range.cc	2013-07-31 13:45:44 +0000
+++ b/sql/opt_range.cc	2013-08-05 20:52:53 +0000
@@ -3985,7 +3985,7 @@
     '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,



More information about the commits mailing list