disabling innobase_stats_on_metadata disables ANALYZE
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Drizzle |
Fix Released
|
Low
|
Andrew Hutchings | ||
7.0 |
Fix Released
|
Low
|
Andrew Hutchings | ||
MariaDB |
New
|
Undecided
|
Unassigned | ||
MySQL Server |
Unknown
|
Unknown
|
|||
Percona Server moved to https://jira.percona.com/projects/PS |
Invalid
|
Undecided
|
Unassigned |
Bug Description
ha_innobase:
/*=====
THD* thd, /*!< in: connection thread handle */
HA_CHECK_OPT* check_opt) /*!< in: currently ignored */
{
/* Simply call ::info() with all the flags */
info(HA_
return(0);
}
versus this code in ::info():
if (flag & HA_STATUS_TIME) {
if (innobase_
/* In sql_show we call with this flag: update
then statistics so that they are up-to-date */
prebuilt-
dict_
prebuilt-
}
The solution is pretty simple, in ::info() do something like the following:
if (! innobase_
dict_
It does not seem like it was the intention of innobase_
Related branches
- Drizzle Merge Team: Pending requested
-
Diff: 64 lines (+8/-18)1 file modifiedplugin/innobase/handler/ha_innodb.cc (+8/-18)
Changed in percona-xtradb: | |
status: | New → Confirmed |
assignee: | nobody → Yasufumi Kinoshita (yasufumi-kinoshita) |
affects: | percona-xtradb → percona-server |
Changed in drizzle: | |
assignee: | nobody → Andrew Hutchings (linuxjedi) |
Changed in drizzle: | |
milestone: | none → 2010-10-25 |
status: | Confirmed → Triaged |
Changed in drizzle: | |
status: | Triaged → Fix Committed |
Changed in drizzle: | |
status: | Fix Committed → Fix Released |
Changed in maria: | |
milestone: | none → 5.1 |
XtraDB already has the following code.
if (flag & HA_STATUS_TIME) { stats_on_ metadata) { stats_on_ metadata command( user_thd) == SQLCOM_ANALYZE
/* In sql_show we call with this flag: update
then statistics so that they are up-to-date */
- if (innobase_
+ if (innobase_
+ || thd_sql_
+ ) {
Why was the bug confirmed??