~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/handler/ha_innodb.cc

  • Committer: lbieber at stabletransit
  • Date: 2010-10-15 00:46:40 UTC
  • mfrom: (1849.1.4 build)
  • Revision ID: lbieber@drizzle-build-n02.wc1.dfw1.stabletransit.com-20101015004640-59supgzfwelkthos
Merge Travis - changing struct to C++ classes 
Merge Andrew - fix bug 655186: disabling innobase_stats_on_metadata disables ANALYZE

Show diffs side-by-side

added added

removed removed

Lines of Context:
235
235
static my_bool  innobase_use_checksums      = TRUE;
236
236
static my_bool  innobase_rollback_on_timeout    = FALSE;
237
237
static my_bool  innobase_create_status_file   = FALSE;
238
 
static my_bool  innobase_stats_on_metadata    = TRUE;
239
238
 
240
239
static char*  internal_innobase_data_file_path  = NULL;
241
240
 
1846
1845
  innobase_use_checksums= (vm.count("disable-checksums")) ? false : true;
1847
1846
  innobase_use_doublewrite= (vm.count("disable-doublewrite")) ? false : true;
1848
1847
  srv_adaptive_flushing= (vm.count("disable-adaptive-flushing")) ? false : true;
1849
 
  innobase_stats_on_metadata= (vm.count("disable-stats-on-metadata")) ? false : true;
1850
1848
  srv_use_sys_malloc= (vm.count("use-internal-malloc")) ? false : true;
1851
1849
  (SessionVAR(NULL,support_xa))= (vm.count("disable-xa")) ? false : true;
1852
1850
  (SessionVAR(NULL,table_locks))= (vm.count("disable-table-locks")) ? false : true;
6563
6561
  ib_table = prebuilt->table;
6564
6562
 
6565
6563
  if (flag & HA_STATUS_TIME) {
6566
 
    if (innobase_stats_on_metadata) {
6567
 
      /* In sql_show we call with this flag: update
6568
 
      then statistics so that they are up-to-date */
6569
 
 
6570
 
      prebuilt->trx->op_info = "updating table statistics";
6571
 
 
6572
 
      dict_update_statistics(ib_table);
6573
 
 
6574
 
      prebuilt->trx->op_info = "returning various info to MySQL";
6575
 
    }
 
6564
    /* In Analyze we call with this flag: update
 
6565
       then statistics so that they are up-to-date */
 
6566
 
 
6567
    prebuilt->trx->op_info = "updating table statistics";
 
6568
 
 
6569
    dict_update_statistics(ib_table);
 
6570
 
 
6571
    prebuilt->trx->op_info = "returning various info to MySQL";
6576
6572
 
6577
6573
    fs::path get_status_path(getDataHomeCatalog());
6578
6574
    get_status_path /= ib_table->name;
8815
8811
  "Enable SHOW INNODB STATUS output in the innodb_status.<pid> file",
8816
8812
  NULL, NULL, FALSE);
8817
8813
 
8818
 
static DRIZZLE_SYSVAR_BOOL(stats_on_metadata, innobase_stats_on_metadata,
8819
 
  PLUGIN_VAR_OPCMDARG,
8820
 
  "Enable statistics gathering for metadata commands such as SHOW TABLE STATUS (on by default)",
8821
 
  NULL, NULL, TRUE);
8822
 
 
8823
8814
static DRIZZLE_SYSVAR_ULONGLONG(stats_sample_pages, srv_stats_sample_pages,
8824
8815
  PLUGIN_VAR_RQCMDARG,
8825
8816
  "The number of index pages to sample when calculating statistics (default 8)",
9134
9125
  DRIZZLE_SYSVAR(old_blocks_pct),
9135
9126
  DRIZZLE_SYSVAR(old_blocks_time),
9136
9127
  DRIZZLE_SYSVAR(open_files),
9137
 
  DRIZZLE_SYSVAR(stats_on_metadata),
9138
9128
  DRIZZLE_SYSVAR(stats_sample_pages),
9139
9129
  DRIZZLE_SYSVAR(adaptive_hash_index),
9140
9130
  DRIZZLE_SYSVAR(replication_delay),