List:Commits« Previous MessageNext Message »
From:vasil.dimov Date:September 15 2010 8:32am
Subject:bzr commit into mysql-5.1-innodb branch (vasil.dimov:3589) Bug#55227
View as plain text  
#At file:///usr/local/devel/bzrroot/server/mysql-5.1-innodb/ based on revid:vasil.dimov@stripped

 3589 Vasil Dimov	2010-09-15
      (partially) Fix Bug#55227 Fix compiler warnings in innodb with gcc 4.6
      
      Fix compiler warning:
      buf/buf0flu.c: In function 'buf_flush_batch':
      buf/buf0flu.c:1274:9: error: variable 'old_page_count' set but not used [-Werror=unused-but-set-variable]

    modified:
      storage/innodb_plugin/buf/buf0flu.c
=== modified file 'storage/innodb_plugin/buf/buf0flu.c'
--- a/storage/innodb_plugin/buf/buf0flu.c	revid:vasil.dimov@stripped
+++ b/storage/innodb_plugin/buf/buf0flu.c	revid:vasil.dimov@stripped
@@ -1271,7 +1271,6 @@ buf_flush_batch(
 {
 	buf_page_t*	bpage;
 	ulint		page_count	= 0;
-	ulint		old_page_count;
 	ulint		space;
 	ulint		offset;
 
@@ -1343,15 +1342,9 @@ flush_next:
 
 				buf_pool_mutex_exit();
 
-				old_page_count = page_count;
-
 				/* Try to flush also all the neighbors */
 				page_count += buf_flush_try_neighbors(
 					space, offset, flush_type);
-				/* fprintf(stderr,
-				"Flush type %lu, page no %lu, neighb %lu\n",
-				flush_type, offset,
-				page_count - old_page_count); */
 
 				buf_pool_mutex_enter();
 				goto flush_next;


Attachment: [text/bzr-bundle] bzr/vasil.dimov@oracle.com-20100915083057-xqhpi80dpw58exyk.bundle
Thread
bzr commit into mysql-5.1-innodb branch (vasil.dimov:3589) Bug#55227vasil.dimov15 Sep