Merge lp:~linuxjedi/drizzle/trunk-bug-655186 into lp:~drizzle-trunk/drizzle/development

Proposed by Andrew Hutchings
Status: Merged
Approved by: Brian Aker
Approved revision: 1849
Merged at revision: 1850
Proposed branch: lp:~linuxjedi/drizzle/trunk-bug-655186
Merge into: lp:~drizzle-trunk/drizzle/development
Diff against target: 64 lines (+8/-18)
1 file modified
plugin/innobase/handler/ha_innodb.cc (+8/-18)
To merge this branch: bzr merge lp:~linuxjedi/drizzle/trunk-bug-655186
Reviewer Review Type Date Requested Status
Drizzle Merge Team Pending
Review via email: mp+38414@code.launchpad.net

Description of the change

Remove stats_on_metadata option as it is only used for Analyze command in Drizzle and shouldn't even be used for that.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'plugin/innobase/handler/ha_innodb.cc'
2--- plugin/innobase/handler/ha_innodb.cc 2010-10-12 12:50:35 +0000
3+++ plugin/innobase/handler/ha_innodb.cc 2010-10-14 12:41:20 +0000
4@@ -235,7 +235,6 @@
5 static my_bool innobase_use_checksums = TRUE;
6 static my_bool innobase_rollback_on_timeout = FALSE;
7 static my_bool innobase_create_status_file = FALSE;
8-static my_bool innobase_stats_on_metadata = TRUE;
9
10 static char* internal_innobase_data_file_path = NULL;
11
12@@ -1846,7 +1845,6 @@
13 innobase_use_checksums= (vm.count("disable-checksums")) ? false : true;
14 innobase_use_doublewrite= (vm.count("disable-doublewrite")) ? false : true;
15 srv_adaptive_flushing= (vm.count("disable-adaptive-flushing")) ? false : true;
16- innobase_stats_on_metadata= (vm.count("disable-stats-on-metadata")) ? false : true;
17 srv_use_sys_malloc= (vm.count("use-internal-malloc")) ? false : true;
18 (SessionVAR(NULL,support_xa))= (vm.count("disable-xa")) ? false : true;
19 (SessionVAR(NULL,table_locks))= (vm.count("disable-table-locks")) ? false : true;
20@@ -6563,16 +6561,14 @@
21 ib_table = prebuilt->table;
22
23 if (flag & HA_STATUS_TIME) {
24- if (innobase_stats_on_metadata) {
25- /* In sql_show we call with this flag: update
26- then statistics so that they are up-to-date */
27-
28- prebuilt->trx->op_info = "updating table statistics";
29-
30- dict_update_statistics(ib_table);
31-
32- prebuilt->trx->op_info = "returning various info to MySQL";
33- }
34+ /* In Analyze we call with this flag: update
35+ then statistics so that they are up-to-date */
36+
37+ prebuilt->trx->op_info = "updating table statistics";
38+
39+ dict_update_statistics(ib_table);
40+
41+ prebuilt->trx->op_info = "returning various info to MySQL";
42
43 fs::path get_status_path(getDataHomeCatalog());
44 get_status_path /= ib_table->name;
45@@ -8815,11 +8811,6 @@
46 "Enable SHOW INNODB STATUS output in the innodb_status.<pid> file",
47 NULL, NULL, FALSE);
48
49-static DRIZZLE_SYSVAR_BOOL(stats_on_metadata, innobase_stats_on_metadata,
50- PLUGIN_VAR_OPCMDARG,
51- "Enable statistics gathering for metadata commands such as SHOW TABLE STATUS (on by default)",
52- NULL, NULL, TRUE);
53-
54 static DRIZZLE_SYSVAR_ULONGLONG(stats_sample_pages, srv_stats_sample_pages,
55 PLUGIN_VAR_RQCMDARG,
56 "The number of index pages to sample when calculating statistics (default 8)",
57@@ -9134,7 +9125,6 @@
58 DRIZZLE_SYSVAR(old_blocks_pct),
59 DRIZZLE_SYSVAR(old_blocks_time),
60 DRIZZLE_SYSVAR(open_files),
61- DRIZZLE_SYSVAR(stats_on_metadata),
62 DRIZZLE_SYSVAR(stats_sample_pages),
63 DRIZZLE_SYSVAR(adaptive_hash_index),
64 DRIZZLE_SYSVAR(replication_delay),