summaryrefslogtreecommitdiff
path: root/storage/innobase/include/log0log.h
diff options
context:
space:
mode:
Diffstat (limited to 'storage/innobase/include/log0log.h')
-rw-r--r--storage/innobase/include/log0log.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/storage/innobase/include/log0log.h b/storage/innobase/include/log0log.h
index 58a2ee3468c..c77f13b9f5c 100644
--- a/storage/innobase/include/log0log.h
+++ b/storage/innobase/include/log0log.h
@@ -514,11 +514,10 @@ public:
/** Redo log system */
extern log_t log_sys;
-inline void log_free_check()
-{
- if (log_sys.check_flush_or_checkpoint())
- log_check_margins();
-}
+/** Wait for a log checkpoint if needed.
+NOTE that this function may only be called while not holding
+any synchronization objects except dict_sys.latch. */
+void log_free_check();
/** Release the latches that protect log resizing. */
void log_resize_release();