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

 3691 Marko Mäkelä	2011-01-25
      Bug #59486 Incorrect usage of UNIV_UNLIKELY() in mlog_parse_string()
      
      mlog_parse_string(): Enclose the comparison in UNIV_UNLIKELY,
      not the comparand.

    modified:
      storage/innodb_plugin/mtr/mtr0log.c
=== modified file 'storage/innodb_plugin/mtr/mtr0log.c'
--- a/storage/innodb_plugin/mtr/mtr0log.c	revid:marko.makela@oracle.com-20110125095450-cme5ynezoivygr8t
+++ b/storage/innodb_plugin/mtr/mtr0log.c	revid:marko.makela@stripped10125100310-aj6hzuxpknrtqf5a
@@ -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);

Attachment: [text/bzr-bundle] bzr/marko.makela@oracle.com-20110125100310-aj6hzuxpknrtqf5a.bundle
Thread
bzr commit into mysql-5.1-innodb branch (marko.makela:3691) Bug#59486marko.makela25 Jan