List:Commits« Previous MessageNext Message »
From:marko.makela Date:May 12 2010 6:22am
Subject:bzr push into mysql-trunk-innodb branch (marko.makela:3086 to 3087)
View as plain text  
 3087 Marko Mäkelä	2010-05-12
      Merge from mysql-5.1-innodb:
      
        ------------------------------------------------------------
        revno: 3460
        revision-id: marko.makela@strippedo0838fs2roo
        parent: marko.makela@stripped511165845-lsw7seixftgzpfqt
        committer: Marko Mäkelä <marko.makela@stripped>
        branch nick: mysql-5.1-innodb
        timestamp: Wed 2010-05-12 08:39:25 +0300
        message:
          row_merge_drop_temp_indexes(): Do not reference freed memory.
          (Bug #53471)

    modified:
      storage/innobase/row/row0merge.c
 3086 Sunny Bains	2010-05-12
      Remove UNIV_DEBUG and UNIV_SYNC_DEBUG from univ.i. Left over from testing
      the revert of kernel mutex split patch.

    modified:
      storage/innobase/include/univ.i
=== modified file 'storage/innobase/row/row0merge.c'
--- a/storage/innobase/row/row0merge.c	2010-05-11 16:18:28 +0000
+++ b/storage/innobase/row/row0merge.c	2010-05-12 06:21:46 +0000
@@ -2120,9 +2120,12 @@ row_merge_drop_temp_indexes(void)
 
 		if (table) {
 			dict_index_t*	index;
+			dict_index_t*	next_index;
 
 			for (index = dict_table_get_first_index(table);
-			     index; index = dict_table_get_next_index(index)) {
+			     index; index = next_index) {
+
+				next_index = dict_table_get_next_index(index);
 
 				if (*index->name == TEMP_INDEX_PREFIX) {
 					row_merge_drop_index(index, table, trx);

Attachment: [text/bzr-bundle] bzr/marko.makela@oracle.com-20100512062146-mkmcuocfya2ccpmz.bundle
Thread
bzr push into mysql-trunk-innodb branch (marko.makela:3086 to 3087) marko.makela12 May