List:Commits« Previous MessageNext Message »
From:marko.makela Date:October 21 2010 9:02am
Subject:bzr commit into mysql-trunk-innodb branch (marko.makela:3273) Bug#56680
View as plain text  
#At file:///home/marko/innobase/dev/mysql2a/5.6-innodb/ based on revid:jimmy.yang@strippeds3jqfltao5

 3273 Marko Mäkelä	2010-10-21
      row_search_for_mysql(): Avoid recomputing offsets for DB_ROW_ID.
      I noticed this when working on Bug #56680.
      We can pass result_rec to row_sel_store_row_id_to_prebuilt(),
      just like we pass it to row_sel_store_mysql_rec().

    modified:
      storage/innobase/row/row0sel.c
=== modified file 'storage/innobase/row/row0sel.c'
--- a/storage/innobase/row/row0sel.c	revid:jimmy.yang@stripped-20101021084828-nq6sdrs3jqfltao5
+++ b/storage/innobase/row/row0sel.c	revid:marko.makela@stripped-vpwbpnqc2ao24hhg
@@ -4468,13 +4468,10 @@ requires_clust_rec:
 		}
 
 		if (prebuilt->clust_index_was_generated) {
-			if (result_rec != rec) {
-				offsets = rec_get_offsets(
-					rec, index, offsets, ULINT_UNDEFINED,
-					&heap);
-			}
-			row_sel_store_row_id_to_prebuilt(prebuilt, rec,
-							 index, offsets);
+			row_sel_store_row_id_to_prebuilt(
+				prebuilt, result_rec,
+				result_rec == rec ? index : clust_index,
+				offsets);
 		}
 	}
 

Attachment: [text/bzr-bundle] bzr/marko.makela@oracle.com-20101021090228-vpwbpnqc2ao24hhg.bundle
Thread
bzr commit into mysql-trunk-innodb branch (marko.makela:3273) Bug#56680marko.makela21 Oct