File tree Expand file tree Collapse file tree 6 files changed +3
-13
lines changed Expand file tree Collapse file tree 6 files changed +3
-13
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,6 @@ xb_fil_node_close_file(
110
110
111
111
ut_a (fil_system->n_open > 0 );
112
112
fil_system->n_open --;
113
- fil_n_file_opened--;
114
113
115
114
if (node->space ->purpose == FIL_TYPE_TABLESPACE &&
116
115
fil_is_user_tablespace_id (node->space ->id )) {
@@ -179,7 +178,6 @@ xb_fil_cur_open(
179
178
mutex_enter (&fil_system->mutex );
180
179
181
180
fil_system->n_open ++;
182
- fil_n_file_opened++;
183
181
184
182
if (node->space ->purpose == FIL_TYPE_TABLESPACE &&
185
183
fil_is_user_tablespace_id (node->space ->id )) {
Original file line number Diff line number Diff line change @@ -138,9 +138,6 @@ ulint fil_n_pending_log_flushes = 0;
138
138
/* * Number of pending tablespace flushes */
139
139
ulint fil_n_pending_tablespace_flushes = 0 ;
140
140
141
- /* * Number of files currently open */
142
- ulint fil_n_file_opened = 0 ;
143
-
144
141
/* * The null file address */
145
142
fil_addr_t fil_addr_null = {FIL_NULL, 0 };
146
143
@@ -758,7 +755,6 @@ fil_node_open_file(
758
755
ut_a (node->is_open ());
759
756
760
757
fil_system->n_open ++;
761
- fil_n_file_opened++;
762
758
763
759
if (fil_space_belongs_in_lru (space)) {
764
760
@@ -797,7 +793,6 @@ fil_node_close_file(
797
793
ut_ad (!node->is_open ());
798
794
ut_a (fil_system->n_open > 0 );
799
795
fil_system->n_open --;
800
- fil_n_file_opened--;
801
796
802
797
if (fil_space_belongs_in_lru (node->space )) {
803
798
Original file line number Diff line number Diff line change @@ -443,9 +443,6 @@ extern ulint fil_n_pending_log_flushes;
443
443
/* * Number of pending tablespace flushes */
444
444
extern ulint fil_n_pending_tablespace_flushes;
445
445
446
- /* * Number of files currently open */
447
- extern ulint fil_n_file_opened;
448
-
449
446
#ifndef UNIV_INNOCHECKSUM
450
447
451
448
/* * Look up a tablespace.
Original file line number Diff line number Diff line change @@ -1020,7 +1020,7 @@ struct export_var_t{
1020
1020
ulint innodb_system_rows_inserted ; /*!< srv_n_system_rows_inserted */
1021
1021
ulint innodb_system_rows_updated ; /*!< srv_n_system_rows_updated */
1022
1022
ulint innodb_system_rows_deleted ; /*!< srv_n_system_rows_deleted*/
1023
- ulint innodb_num_open_files ; /*!< fil_n_file_opened */
1023
+ ulint innodb_num_open_files ; /*!< fil_system_t::n_open */
1024
1024
ulint innodb_truncated_status_writes ; /*!< srv_truncated_status_writes */
1025
1025
ulint innodb_available_undo_logs ; /*!< srv_available_undo_logs
1026
1026
*/
Original file line number Diff line number Diff line change @@ -1960,7 +1960,7 @@ srv_mon_process_existing_counter(
1960
1960
break ;
1961
1961
1962
1962
case MONITOR_OVLD_N_FILE_OPENED:
1963
- value = fil_n_file_opened ;
1963
+ value = fil_system-> n_open ;
1964
1964
break ;
1965
1965
1966
1966
case MONITOR_OVLD_IBUF_MERGE_INSERT:
Original file line number Diff line number Diff line change @@ -1626,7 +1626,7 @@ srv_export_innodb_status(void)
1626
1626
export_vars.innodb_system_rows_deleted =
1627
1627
srv_stats.n_system_rows_deleted ;
1628
1628
1629
- export_vars.innodb_num_open_files = fil_n_file_opened ;
1629
+ export_vars.innodb_num_open_files = fil_system-> n_open ;
1630
1630
1631
1631
export_vars.innodb_truncated_status_writes =
1632
1632
srv_truncated_status_writes;
You can’t perform that action at this time.
0 commit comments