Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
e9bc0f75
Commit
e9bc0f75
authored
Dec 06, 2017
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-5834 cleanup: Inline two tiny functions
parent
1d526f31
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
40 deletions
+13
-40
storage/innobase/dict/dict0stats.cc
storage/innobase/dict/dict0stats.cc
+0
-23
storage/innobase/include/dict0mem.h
storage/innobase/include/dict0mem.h
+13
-0
storage/innobase/include/dict0stats.h
storage/innobase/include/dict0stats.h
+0
-17
No files found.
storage/innobase/dict/dict0stats.cc
View file @
e9bc0f75
...
...
@@ -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. */
...
...
storage/innobase/include/dict0mem.h
View file @
e9bc0f75
...
...
@@ -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 */
storage/innobase/include/dict0stats.h
View file @
e9bc0f75
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment