mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 20:07:13 +02:00
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)
This commit is contained in:
parent
16c745053a
commit
c470d5e46e
4 changed files with 94 additions and 2 deletions
|
|
@ -256,6 +256,12 @@ ulint srv_read_ahead_seq = 0;
|
|||
/* variable to count the number of random read-aheads */
|
||||
ulint srv_read_ahead_rnd = 0;
|
||||
|
||||
/* 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. */
|
||||
char srv_use_legacy_cardinality_algorithm = TRUE;
|
||||
|
||||
/* structure to pass status variables to MySQL */
|
||||
export_struc export_vars;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue