diff options
author | Satya B <satya.bn@sun.com> | 2009-04-15 18:11:54 +0530 |
---|---|---|
committer | Satya B <satya.bn@sun.com> | 2009-04-15 18:11:54 +0530 |
commit | c470d5e46e23cdbce578e968093ad834533ab287 (patch) | |
tree | 95cbf3ff3db9b29f4c865f92849a34deb15a5a73 /storage/innobase/include | |
parent | 16c745053adfeae7fc94e42d45e023cc8b5297b4 (diff) | |
download | mariadb-git-c470d5e46e23cdbce578e968093ad834533ab287.tar.gz |
Applying InnoDB snashot 5.1-ss4699, part 3. Fixes BUG#43660
1) BUG#43660 - SHOW INDEXES/ANALYZE does NOT update cardinality
for indexes of InnoDB table
Detailed revision comments:
r4699 | vasil | 2009-04-09 14:01:52 +0300 (Thu, 09 Apr 2009) | 15 lines
branches/5.1:
Fix Bug#43660 SHOW INDEXES/ANALYZE does NOT update cardinality for indexes
of InnoDB table
by replacing the PRNG that is used to pick random pages with a better
one.
This is based on r4670 but also adds a new configuration option and
enables the fix only if this option is changed. Please skip the present
revision when merging.
Approved by: Heikki (via email)
Diffstat (limited to 'storage/innobase/include')
-rw-r--r-- | storage/innobase/include/srv0srv.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/storage/innobase/include/srv0srv.h b/storage/innobase/include/srv0srv.h index 2516937565d..9ff3c225eb0 100644 --- a/storage/innobase/include/srv0srv.h +++ b/storage/innobase/include/srv0srv.h @@ -235,6 +235,12 @@ extern ulint srv_read_ahead_seq; /* variable to count the number of random read-aheads were done */ extern ulint srv_read_ahead_rnd; +/* An option to enable the fix for "Bug#43660 SHOW INDEXES/ANALYZE does +NOT update cardinality for indexes of InnoDB table". By default we are +running with the fix disabled because MySQL 5.1 is frozen for such +behavioral changes. */ +extern char srv_use_legacy_cardinality_algorithm; + /* In this structure we store status variables to be passed to MySQL */ typedef struct export_var_struct export_struc; |