File tree Expand file tree Collapse file tree 3 files changed +13
-40
lines changed Expand file tree Collapse file tree 3 files changed +13
-40
lines changed Original file line number Diff line number Diff line change @@ -546,29 +546,6 @@ dict_stats_empty_index(
546
546
}
547
547
}
548
548
549
- /* *********************************************************************/ /* *
550
- Clear defragmentation summary. */
551
- UNIV_INTERN
552
- void
553
- dict_stats_empty_defrag_summary (
554
- /* ==================*/
555
- dict_index_t * index) /* !< in: index to clear defragmentation stats */
556
- {
557
- index->stat_defrag_n_pages_freed = 0 ;
558
- }
559
-
560
- /* *********************************************************************/ /* *
561
- Clear defragmentation related index stats. */
562
- UNIV_INTERN
563
- void
564
- dict_stats_empty_defrag_stats (
565
- /* ==================*/
566
- dict_index_t * index) /* !< in: index to clear defragmentation stats */
567
- {
568
- index->stat_defrag_modified_counter = 0 ;
569
- index->stat_defrag_n_page_split = 0 ;
570
- }
571
-
572
549
/* ********************************************************************/ /* *
573
550
Write all zeros (or 1 where it makes sense) into a table and its indexes'
574
551
statistics members. The resulting stats correspond to an empty table. */
Original file line number Diff line number Diff line change @@ -1840,6 +1840,19 @@ dict_col_get_spatial_status(
1840
1840
return (spatial_status);
1841
1841
}
1842
1842
1843
+ /* * Clear defragmentation summary. */
1844
+ inline void dict_stats_empty_defrag_summary (dict_index_t * index)
1845
+ {
1846
+ index->stat_defrag_n_pages_freed = 0 ;
1847
+ }
1848
+
1849
+ /* * Clear defragmentation related index stats. */
1850
+ inline void dict_stats_empty_defrag_stats (dict_index_t * index)
1851
+ {
1852
+ index->stat_defrag_modified_counter = 0 ;
1853
+ index->stat_defrag_n_page_split = 0 ;
1854
+ }
1855
+
1843
1856
#include " dict0mem.ic"
1844
1857
1845
1858
#endif /* dict0mem_h */
Original file line number Diff line number Diff line change @@ -206,23 +206,6 @@ dberr_t
206
206
dict_stats_save_defrag_stats (
207
207
dict_index_t * index ); /*!< in: index */
208
208
209
- /**********************************************************************/ /**
210
- Clear defragmentation summary. */
211
- UNIV_INTERN
212
- void
213
- dict_stats_empty_defrag_summary (
214
- /*==================*/
215
- dict_index_t * index ); /*!< in: index to clear defragmentation stats */
216
-
217
- /**********************************************************************/ /**
218
- Clear defragmentation related index stats. */
219
- UNIV_INTERN
220
- void
221
- dict_stats_empty_defrag_stats (
222
- /*==================*/
223
- dict_index_t * index ); /*!< in: index to clear defragmentation stats */
224
-
225
-
226
209
/*********************************************************************/ /**
227
210
Renames an index in InnoDB persistent stats storage.
228
211
This function creates its own transaction and commits it.
You can’t perform that action at this time.
0 commit comments