List:Commits« Previous MessageNext Message »
From:marko.makela Date:October 27 2010 6:50pm
Subject:bzr commit into mysql-5.5-innodb branch (marko.makela:3209) Bug#57707
View as plain text  
#At file:///home/marko/innobase/dev/mysql2a/5.5-innodb/ based on revid:vasil.dimov@stripped81pu6oph8ru

 3209 Marko Mäkelä	2010-10-27
      Fix a bogus debug assertion in the fix of Bug #57707.
      
      buf_pool_init(): Replace ut_ad(n_instances < MAX_BUFFER_POOLS)
      with ut_ad(n_instances <= MAX_BUFFER_POOLS).
      (Spotted by Michael Izioumtchenko.)
      Add ut_ad(n_instances > 0).

    modified:
      storage/innobase/buf/buf0buf.c
=== modified file 'storage/innobase/buf/buf0buf.c'
--- a/storage/innobase/buf/buf0buf.c	revid:vasil.dimov@stripped
+++ b/storage/innobase/buf/buf0buf.c	revid:marko.makela@oracle.com-20101027185045-uec2xx1mxc3a602h
@@ -1295,7 +1295,8 @@ buf_pool_init(
 	ulint		i;
 	const ulint	size	= total_size / n_instances;
 
-	ut_ad(n_instances < MAX_BUFFER_POOLS);
+	ut_ad(n_instances > 0);
+	ut_ad(n_instances <= MAX_BUFFER_POOLS);
 	ut_ad(n_instances == srv_buf_pool_instances);
 
 	/* We create an extra buffer pool instance, this instance is used

Attachment: [text/bzr-bundle] bzr/marko.makela@oracle.com-20101027185045-uec2xx1mxc3a602h.bundle
Thread
bzr commit into mysql-5.5-innodb branch (marko.makela:3209) Bug#57707marko.makela27 Oct