summaryrefslogtreecommitdiff
path: root/storage/innobase/include/log0log.h
diff options
context:
space:
mode:
authorEugene Kosov <claprix@yandex.ru>2020-03-13 12:45:34 +0300
committerEugene Kosov <claprix@yandex.ru>2020-03-14 00:52:21 +0300
commit774fe8969ac64dfbba396878f3ff8c20323b17b2 (patch)
treeb120f360df948bfbcbc4b9c032de3b8f1ad29b0b /storage/innobase/include/log0log.h
parent78cc9c9ebfd689261e3f9ff91fd422778f658bbe (diff)
downloadmariadb-git-774fe8969ac64dfbba396878f3ff8c20323b17b2.tar.gz
cleanup redo log
Diffstat (limited to 'storage/innobase/include/log0log.h')
-rw-r--r--storage/innobase/include/log0log.h14
1 files changed, 3 insertions, 11 deletions
diff --git a/storage/innobase/include/log0log.h b/storage/innobase/include/log0log.h
index 07918e478dc..863dadc26aa 100644
--- a/storage/innobase/include/log0log.h
+++ b/storage/innobase/include/log0log.h
@@ -34,26 +34,22 @@ Created 12/9/1995 Heikki Tuuri
#ifndef log0log_h
#define log0log_h
-#include "dyn0buf.h"
#include "log0types.h"
-#include "os0event.h"
+#include "ut0mutex.h"
#include "os0file.h"
#include "span.h"
#include <atomic>
+#include <vector>
+#include <string>
using st_::span;
-/** Magic value to use instead of log checksums when they are disabled */
-#define LOG_NO_CHECKSUM_MAGIC 0xDEADBEEFUL
-
/* Margin for the free space in the smallest log, before a new query
step which modifies the database, is started */
#define LOG_CHECKPOINT_FREE_PER_THREAD (4U << srv_page_size_shift)
#define LOG_CHECKPOINT_EXTRA_FREE (8U << srv_page_size_shift)
-typedef ulint (*log_checksum_func_t)(const byte* log_block);
-
static const char LOG_FILE_NAME_PREFIX[] = "ib_logfile";
static const char LOG_FILE_NAME[] = "ib_logfile0";
@@ -305,10 +301,6 @@ void
log_refresh_stats(void);
/*===================*/
-/* Values used as flags */
-#define LOG_FLUSH 7652559
-#define LOG_CHECKPOINT 78656949
-
/* The counting of lsn's starts from this value: this must be non-zero */
#define LOG_START_LSN ((lsn_t) (16 * OS_FILE_LOG_BLOCK_SIZE))