summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/src/include/log.h
diff options
context:
space:
mode:
authorLuke Chen <luke.chen@mongodb.com>2018-08-13 15:46:37 +1000
committerLuke Chen <luke.chen@mongodb.com>2018-08-13 15:46:37 +1000
commitec6f2a54d8b901e95e556d53647944be8ce441d5 (patch)
treea75c521f1918cf0343acf2ced1669567e2a7b854 /src/third_party/wiredtiger/src/include/log.h
parent1c52af393ebc9040fbc300293835f68f827304ce (diff)
downloadmongo-ec6f2a54d8b901e95e556d53647944be8ce441d5.tar.gz
Import wiredtiger: c91b80412603f283532e267893f9238dd4a5ec0f from branch mongodb-4.2
ref: 65531924e3..c91b804126 for: 4.1.2 WT-3856 Create a test that runs recovery to different points of time with schema operations WT-4026 Add implementation for existing file extension configuration API WT-4193 test/format snapshot-isolation search mismatch WT-4194 Improve fairness of eviction with multiple tables WT-4207 Coverity #1394567: null pointer dereference WT-4210 schema abort child process failing prematurely WT-4215 Allow recovery of backup without salvage WT-4229 Lint WT-4234 Remove documentation mention of legacy tool statlog.py WT-4235 Fix workgen tracking of table state across workloads WT-4242 New log file extension Python test failure
Diffstat (limited to 'src/third_party/wiredtiger/src/include/log.h')
-rw-r--r--src/third_party/wiredtiger/src/include/log.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/third_party/wiredtiger/src/include/log.h b/src/third_party/wiredtiger/src/include/log.h
index 2613808e74e..d3e36d37da9 100644
--- a/src/third_party/wiredtiger/src/include/log.h
+++ b/src/third_party/wiredtiger/src/include/log.h
@@ -87,6 +87,12 @@ union __wt_lsn {
#define WT_LOGC_KEY_FORMAT WT_UNCHECKED_STRING(III)
#define WT_LOGC_VALUE_FORMAT WT_UNCHECKED_STRING(qIIIuu)
+/*
+ * Size range for the log files.
+ */
+#define WT_LOG_FILE_MAX ((int64_t)2 * WT_GIGABYTE)
+#define WT_LOG_FILE_MIN (100 * WT_KILOBYTE)
+
#define WT_LOG_SKIP_HEADER(data) \
((const uint8_t *)(data) + offsetof(WT_LOG_RECORD, record))
#define WT_LOG_REC_SIZE(size) \