Commit e9bc0f75 authored by Marko Mäkelä's avatar Marko Mäkelä

MDEV-5834 cleanup: Inline two tiny functions

parent 1d526f31
......@@ -546,29 +546,6 @@ dict_stats_empty_index(
}
}
/**********************************************************************//**
Clear defragmentation summary. */
UNIV_INTERN
void
dict_stats_empty_defrag_summary(
/*==================*/
dict_index_t* index) /*!< in: index to clear defragmentation stats */
{
index->stat_defrag_n_pages_freed = 0;
}
/**********************************************************************//**
Clear defragmentation related index stats. */
UNIV_INTERN
void
dict_stats_empty_defrag_stats(
/*==================*/
dict_index_t* index) /*!< in: index to clear defragmentation stats */
{
index->stat_defrag_modified_counter = 0;
index->stat_defrag_n_page_split = 0;
}
/*********************************************************************//**
Write all zeros (or 1 where it makes sense) into a table and its indexes'
statistics members. The resulting stats correspond to an empty table. */
......
......@@ -1840,6 +1840,19 @@ dict_col_get_spatial_status(
return(spatial_status);
}
/** Clear defragmentation summary. */
inline void dict_stats_empty_defrag_summary(dict_index_t* index)
{
index->stat_defrag_n_pages_freed = 0;
}
/** Clear defragmentation related index stats. */
inline void dict_stats_empty_defrag_stats(dict_index_t* index)
{
index->stat_defrag_modified_counter = 0;
index->stat_defrag_n_page_split = 0;
}
#include "dict0mem.ic"
#endif /* dict0mem_h */
......@@ -206,23 +206,6 @@ dberr_t
dict_stats_save_defrag_stats(
dict_index_t* index); /*!< in: index */
/**********************************************************************//**
Clear defragmentation summary. */
UNIV_INTERN
void
dict_stats_empty_defrag_summary(
/*==================*/
dict_index_t* index); /*!< in: index to clear defragmentation stats */
/**********************************************************************//**
Clear defragmentation related index stats. */
UNIV_INTERN
void
dict_stats_empty_defrag_stats(
/*==================*/
dict_index_t* index); /*!< in: index to clear defragmentation stats */
/*********************************************************************//**
Renames an index in InnoDB persistent stats storage.
This function creates its own transaction and commits it.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment