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

 3234 Vasil Dimov	2010-06-25
      Remove a trailing whitespace and print a message if table definition is corrupt
      
      Suggested by:	Jimmy (rb://373)

    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
@@ -60,7 +60,7 @@ Created Jan 06, 2010 Vasil Dimov
 #define DEBUG_PRINTF(fmt, ...)	/* noop */
 #endif
 
-/* number of distinct records on a given level that are required to stop 
+/* number of distinct records on a given level that are required to stop
 descending to lower levels and fetch
 srv_stats_persistent_sample_pages records from that level */
 #define N_DIFF_REQUIRED	(srv_stats_persistent_sample_pages * 10)
@@ -87,7 +87,9 @@ dict_stats_update_transient(
 
 	if (index == NULL) {
 		/* Table definition is corrupt */
-
+		ut_print_timestamp(stderr);
+		fprintf(stderr, "InnoDB: table %s has no indexes. "
+			"Cannot calculate statistics.\n", table->name);
 		return;
 	}
 


Attachment: [text/bzr-bundle] bzr/vasil.dimov@oracle.com-20100625131527-8p5cjithy9yv7r3e.bundle
Thread
bzr commit into mysql-next-mr-persistent-stats branch (vasil.dimov:3234) vasil.dimov25 Jun