List:Commits« Previous MessageNext Message »
From:marko.makela Date:May 18 2011 10:05am
Subject:bzr commit into mysql-trunk-innodb branch (marko.makela:3631) Bug#12561303
View as plain text  
#At file:///home/marko/innobase/dev/mysql2a/5.6-innodb/ based on revid:marko.makela@stripped8zdeknx5qkc4

 3631 Marko Mäkelä	2011-05-18
      Fix a signed/unsigned comparison that was added in
      Bug#12561303 InnoDB file API uses two parameters for file size
      (bzr revision id marko.makela@stripped14210-e7dfx9z36r2tumzz)

    modified:
      storage/innobase/os/os0file.c
=== modified file 'storage/innobase/os/os0file.c'
--- a/storage/innobase/os/os0file.c	revid:marko.makela@stripped
+++ b/storage/innobase/os/os0file.c	revid:marko.makela@oracle.com-20110518100538-cqh1wkgckl0nl4sm
@@ -1926,7 +1926,7 @@ os_file_set_size(
 	while (current_size < size) {
 		ulint	n_bytes;
 
-		if (size - current_size < (ib_int64_t) buf_size) {
+		if (size - current_size < (os_offset_t) buf_size) {
 			n_bytes = (ulint) (size - current_size);
 		} else {
 			n_bytes = buf_size;

Attachment: [text/bzr-bundle] bzr/marko.makela@oracle.com-20110518100538-cqh1wkgckl0nl4sm.bundle
Thread
bzr commit into mysql-trunk-innodb branch (marko.makela:3631) Bug#12561303marko.makela18 May