List:Commits« Previous MessageNext Message »
From:marko.makela Date:November 2 2010 7:35am
Subject:bzr commit into mysql-5.5-innodb branch (marko.makela:3217)
View as plain text  
#At file:///home/marko/innobase/dev/mysql2a/5.5-innodb/ based on revid:marko.makela@stripped6soqj81v0epg

 3217 Marko Mäkelä	2010-11-02 [merge]
      Merge mysql-5.1-innodb to mysql-5.5-innodb.

    modified:
      storage/innobase/row/row0sel.c
=== modified file 'storage/innobase/row/row0sel.c'
--- a/storage/innobase/row/row0sel.c	revid:marko.makela@stripped928-ablf6soqj81v0epg
+++ b/storage/innobase/row/row0sel.c	revid:marko.makela@strippedk4mrv
@@ -104,6 +104,18 @@ row_sel_sec_rec_is_for_blob(
 	ulint	len;
 	byte	buf[DICT_MAX_INDEX_COL_LEN];
 
+	ut_a(clust_len >= BTR_EXTERN_FIELD_REF_SIZE);
+
+	if (UNIV_UNLIKELY
+	    (!memcmp(clust_field + clust_len - BTR_EXTERN_FIELD_REF_SIZE,
+		     field_ref_zero, BTR_EXTERN_FIELD_REF_SIZE))) {
+		/* The externally stored field was not written yet.
+		This record should only be seen by
+		recv_recovery_rollback_active() or any
+		TRX_ISO_READ_UNCOMMITTED transactions. */
+		return(FALSE);
+	}
+
 	len = btr_copy_externally_stored_field_prefix(buf, sizeof buf,
 						      zip_size,
 						      clust_field, clust_len);

Attachment: [text/bzr-bundle] bzr/marko.makela@oracle.com-20101102073409-vcdxkv27xkzk4mrv.bundle
Thread
bzr commit into mysql-5.5-innodb branch (marko.makela:3217) marko.makela2 Nov