~ubuntu-branches/ubuntu/wily/mysql-5.6/wily

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2015-07-21 07:09:29 UTC
  • mto: This revision was merged to the branch mainline in revision 14.
  • Revision ID: package-import@ubuntu.com-20150721070929-mg4dpqkgg3it1ajf
Tags: upstream-5.6.25
ImportĀ upstreamĀ versionĀ 5.6.25

Show diffs side-by-side

added added

removed removed

Lines of Context:
482
482
        (ib_cb_t) ib_get_idx_field_name,
483
483
        (ib_cb_t) ib_trx_get_start_time,
484
484
        (ib_cb_t) ib_cfg_bk_commit_interval,
485
 
        (ib_cb_t) ib_cursor_stmt_begin
 
485
        (ib_cb_t) ib_cursor_stmt_begin,
 
486
        (ib_cb_t) ib_trx_read_only
486
487
};
487
488
 
488
489
/*************************************************************//**
10509
10510
 
10510
10511
        prebuilt->trx->op_info = "";
10511
10512
 
 
10513
        /* Set num_rows less than MERGEBUFF to simulate the case where we do
 
10514
        not have enough space to merge the externally sorted file blocks. */
 
10515
        DBUG_EXECUTE_IF("set_num_rows_lt_MERGEBUFF",
 
10516
                        estimate = 2;
 
10517
                        DBUG_SET("-d,set_num_rows_lt_MERGEBUFF");
 
10518
                       );
 
10519
 
10512
10520
        DBUG_RETURN((ha_rows) estimate);
10513
10521
}
10514
10522
 
10779
10787
        dict_table_t*   ib_table;
10780
10788
        ha_rows         rec_per_key;
10781
10789
        ib_uint64_t     n_rows;
10782
 
        char            path[FN_REFLEN];
10783
10790
        os_file_stat_t  stat_info;
10784
10791
 
10785
10792
        DBUG_ENTER("info");
10837
10844
                                "returning various info to MySQL";
10838
10845
                }
10839
10846
 
10840
 
                my_snprintf(path, sizeof(path), "%s/%s%s",
10841
 
                            mysql_data_home, ib_table->name, reg_ext);
10842
 
 
10843
 
                unpack_filename(path,path);
10844
 
 
10845
 
                /* Note that we do not know the access time of the table,
10846
 
                nor the CHECK TABLE time, nor the UPDATE or INSERT time. */
10847
 
 
10848
 
                if (os_file_get_status(path, &stat_info, false) == DB_SUCCESS) {
10849
 
                        stats.create_time = (ulong) stat_info.ctime;
10850
 
                }
10851
10847
        }
10852
10848
 
10853
10849
        if (flag & HA_STATUS_VARIABLE) {
10982
10978
 
10983
10979
        if (flag & HA_STATUS_CONST) {
10984
10980
                ulong   i;
 
10981
                char    path[FN_REFLEN];
10985
10982
                /* Verify the number of index in InnoDB and MySQL
10986
10983
                matches up. If prebuilt->clust_index_was_generated
10987
10984
                holds, InnoDB defines GEN_CLUST_INDEX internally */
11105
11102
                if (!(flag & HA_STATUS_NO_LOCK)) {
11106
11103
                        dict_table_stats_unlock(ib_table, RW_S_LATCH);
11107
11104
                }
 
11105
 
 
11106
                my_snprintf(path, sizeof(path), "%s/%s%s",
 
11107
                            mysql_data_home,
 
11108
                            table->s->normalized_path.str,
 
11109
                            reg_ext);
 
11110
 
 
11111
                unpack_filename(path,path);
 
11112
 
 
11113
                /* Note that we do not know the access time of the table,
 
11114
                nor the CHECK TABLE time, nor the UPDATE or INSERT time. */
 
11115
 
 
11116
                if (os_file_get_status(path, &stat_info, false) == DB_SUCCESS) {
 
11117
                        stats.create_time = (ulong) stat_info.ctime;
 
11118
                }
11108
11119
        }
11109
11120
 
11110
11121
        if (srv_force_recovery >= SRV_FORCE_NO_IBUF_MERGE) {