List:Commits« Previous MessageNext Message »
From:marko.makela Date:January 25 2011 10:36am
Subject:bzr commit into mysql-5.5-innodb branch (marko.makela:3291)
View as plain text  
#At file:///home/marko/innobase/dev/mysql2a/5.5-innodb/ based on revid:marko.makela@strippedpn2yqhqkcsx5

 3291 Marko Mäkelä	2011-01-25 [merge]
      Merge mysql-5.1-innodb to mysql-5.5-innodb.

    modified:
      storage/innobase/mtr/mtr0log.c
      storage/innobase/row/row0vers.c
=== modified file 'storage/innobase/mtr/mtr0log.c'
--- a/storage/innobase/mtr/mtr0log.c	revid:marko.makela@stripped5
+++ b/storage/innobase/mtr/mtr0log.c	revid:marko.makela@oracle.com-20110125103535-yrom0ik8nvn80edz
@@ -408,7 +408,7 @@ mlog_parse_string(
 	ptr += 2;
 
 	if (UNIV_UNLIKELY(offset >= UNIV_PAGE_SIZE)
-			|| UNIV_UNLIKELY(len + offset) > UNIV_PAGE_SIZE) {
+	    || UNIV_UNLIKELY(len + offset > UNIV_PAGE_SIZE)) {
 		recv_sys->found_corrupt_log = TRUE;
 
 		return(NULL);

=== modified file 'storage/innobase/row/row0vers.c'
--- a/storage/innobase/row/row0vers.c	revid:marko.makela@strippedyqhqkcsx5
+++ b/storage/innobase/row/row0vers.c	revid:marko.makela@stripped
@@ -669,11 +669,15 @@ row_vers_build_for_semi_consistent_read(
 
 		mutex_enter(&kernel_mutex);
 		version_trx = trx_get_on_id(version_trx_id);
+		if (version_trx
+		    && (version_trx->conc_state == TRX_COMMITTED_IN_MEMORY
+			|| version_trx->conc_state == TRX_NOT_STARTED)) {
+
+			version_trx = NULL;
+		}
 		mutex_exit(&kernel_mutex);
 
-		if (!version_trx
-		    || version_trx->conc_state == TRX_NOT_STARTED
-		    || version_trx->conc_state == TRX_COMMITTED_IN_MEMORY) {
+		if (!version_trx) {
 
 			/* We found a version that belongs to a
 			committed transaction: return it. */

Attachment: [text/bzr-bundle] bzr/marko.makela@oracle.com-20110125103535-yrom0ik8nvn80edz.bundle
Thread
bzr commit into mysql-5.5-innodb branch (marko.makela:3291) marko.makela25 Jan