diff options
author | Luke Chen <luke.chen@mongodb.com> | 2018-12-05 16:00:08 +1100 |
---|---|---|
committer | Luke Chen <luke.chen@mongodb.com> | 2018-12-05 16:24:35 +1100 |
commit | b74f8750d92f1dc31469261d8fbfe359ae759c29 (patch) | |
tree | 8c15b6c91170239c551f11a1e316fdb057bd83c0 /src/third_party/wiredtiger/src/include/log.h | |
parent | 51ada5ef6dafa2ca29d329edb0a93fc1a91e2ad0 (diff) | |
download | mongo-b74f8750d92f1dc31469261d8fbfe359ae759c29.tar.gz |
Import wiredtiger: fcb59a43a44222716ddae6d94d45cdfd36b915f7 from branch mongodb-4.2
ref: 74aa2f92a9..fcb59a43a4
for: 4.1.7
WT-4192 Remove WiredTiger raw compression support
WT-4319 Improvements to csuite tests
WT-4331 Further extend max wait time for test_bug019.py
WT-4393 Document cursor behaviour for read committed isolation
WT-4410 Split 'unit-test' task to reduce Evergreen Ubuntu build variant runtime
WT-4417 Make os_cache_max and os_cache_dirty_max reconfigurable
WT-4421 Add a way to calculate modify operations
WT-4434 Modify zstd compression level from 3 to 6
WT-4442 Add the ability to duplicate a backup cursor
WT-4455 test_wt4156_metadata_salvage with HAVE_ATTACH fails on zSeries
WT-4457 Add a maximum of dirty system buffers for the logging subsystem
WT-4463 Reduce runtime for csuite handle locks testing
WT-4464 In debug output row-store internal page keys may not format correctly
WT-4469 Coverity #105148: redundant test
Diffstat (limited to 'src/third_party/wiredtiger/src/include/log.h')
-rw-r--r-- | src/third_party/wiredtiger/src/include/log.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/third_party/wiredtiger/src/include/log.h b/src/third_party/wiredtiger/src/include/log.h index b75f375dbee..389a33db8be 100644 --- a/src/third_party/wiredtiger/src/include/log.h +++ b/src/third_party/wiredtiger/src/include/log.h @@ -211,10 +211,11 @@ struct __wt_logslot { WT_ITEM slot_buf; /* Buffer for grouped writes */ /* AUTOMATIC FLAG VALUE GENERATION START */ -#define WT_SLOT_CLOSEFH 0x1u /* Close old fh on release */ -#define WT_SLOT_FLUSH 0x2u /* Wait for write */ -#define WT_SLOT_SYNC 0x4u /* Needs sync on release */ -#define WT_SLOT_SYNC_DIR 0x8u /* Directory sync on release */ +#define WT_SLOT_CLOSEFH 0x01u /* Close old fh on release */ +#define WT_SLOT_FLUSH 0x02u /* Wait for write */ +#define WT_SLOT_SYNC 0x04u /* Needs sync on release */ +#define WT_SLOT_SYNC_DIR 0x08u /* Directory sync on release */ +#define WT_SLOT_SYNC_DIRTY 0x10u /* Sync system buffers on release */ /* AUTOMATIC FLAG VALUE GENERATION STOP */ uint32_t flags; WT_CACHE_LINE_PAD_END @@ -222,6 +223,11 @@ struct __wt_logslot { #define WT_SLOT_INIT_FLAGS 0 +#define WT_SLOT_SYNC_FLAGS \ + (WT_SLOT_SYNC | \ + WT_SLOT_SYNC_DIR | \ + WT_SLOT_SYNC_DIRTY) + #define WT_WITH_SLOT_LOCK(session, log, op) do { \ WT_ASSERT(session, !F_ISSET(session, WT_SESSION_LOCKED_SLOT)); \ WT_WITH_LOCK_WAIT(session, \ @@ -267,6 +273,7 @@ struct __wt_log { WT_LSN alloc_lsn; /* Next LSN for allocation */ WT_LSN bg_sync_lsn; /* Latest background sync LSN */ WT_LSN ckpt_lsn; /* Last checkpoint LSN */ + WT_LSN dirty_lsn; /* LSN of last non-synced write */ WT_LSN first_lsn; /* First LSN */ WT_LSN sync_dir_lsn; /* LSN of the last directory sync */ WT_LSN sync_lsn; /* LSN of the last sync */ |