MySQL Lists are EOL. Please join:

List:Commits« Previous MessageNext Message »
From:vasil.dimov Date:September 23 2010 2:15pm
Subject:bzr commit into mysql-next-mr-persistent-stats branch (vasil.dimov:3275)
View as plain text  
#At file:///usr/local/devel/bzrroot/server/mysql-next-mr-persistent-stats/ based on revid:vasil.dimov@stripped

 3275 Vasil Dimov	2010-09-23
      Also initialize n_diff to 1 when the tree has a single non-empty page.

    modified:
      storage/innobase/dict/dict0stats.c
=== modified file 'storage/innobase/dict/dict0stats.c'
--- a/storage/innobase/dict/dict0stats.c	revid:vasil.dimov@stripped
+++ b/storage/innobase/dict/dict0stats.c	revid:vasil.dimov@stripped
@@ -963,6 +963,9 @@ dict_stats_analyze_index_below_pcur(
 		/* the whole B-tree consists of a single empty page */
 		*n_diff = 0;
 		goto end;
+	} else {
+		/* the whole B-tree consists of a single non-empty page */
+		*n_diff = 1;
 	}
 
 	offsets_rec = rec_get_offsets(rec, index, offsets_rec,


Attachment: [text/bzr-bundle] bzr/vasil.dimov@oracle.com-20100923141446-9649dqp4ozl30e20.bundle
Thread
bzr commit into mysql-next-mr-persistent-stats branch (vasil.dimov:3275) vasil.dimov23 Sep