summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorsueloverso <sue@mongodb.com>2017-04-04 15:48:22 -0400
committerAlex Gorrod <alexander.gorrod@mongodb.com>2017-04-04 15:48:22 -0400
commitadbe2ec5cd6dc2da2af913087b53c402b2f0b87c (patch)
treec8d0ebec40a2a15a7ed799c4cbe58a5f19ebcf84 /src/include
parent27b483289376e8441da87723a5b6a2ec420ad858 (diff)
downloadmongo-adbe2ec5cd6dc2da2af913087b53c402b2f0b87c.tar.gz
WT-3249 Look at slot_state during force while holding lock. (#3365)
We could race an in-progress switch that set a new, empty active slot but has not yet released the previously active slot and get an incorrect LSN.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/extern.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/extern.h b/src/include/extern.h
index c0a6087e9b1..55ba1bada7c 100644
--- a/src/include/extern.h
+++ b/src/include/extern.h
@@ -404,7 +404,7 @@ extern int __wt_logop_row_truncate_unpack( WT_SESSION_IMPL *session, const uint8
extern int __wt_logop_row_truncate_print(WT_SESSION_IMPL *session, const uint8_t **pp, const uint8_t *end, uint32_t flags) WT_GCC_FUNC_DECL_ATTRIBUTE((warn_unused_result)) WT_GCC_FUNC_DECL_ATTRIBUTE((visibility("hidden")));
extern int __wt_txn_op_printlog(WT_SESSION_IMPL *session, const uint8_t **pp, const uint8_t *end, uint32_t flags) WT_GCC_FUNC_DECL_ATTRIBUTE((warn_unused_result)) WT_GCC_FUNC_DECL_ATTRIBUTE((visibility("hidden")));
extern void __wt_log_slot_activate(WT_SESSION_IMPL *session, WT_LOGSLOT *slot) WT_GCC_FUNC_DECL_ATTRIBUTE((visibility("hidden")));
-extern int __wt_log_slot_switch( WT_SESSION_IMPL *session, WT_MYSLOT *myslot, bool retry, bool forced) WT_GCC_FUNC_DECL_ATTRIBUTE((warn_unused_result)) WT_GCC_FUNC_DECL_ATTRIBUTE((visibility("hidden")));
+extern int __wt_log_slot_switch(WT_SESSION_IMPL *session, WT_MYSLOT *myslot, bool retry, bool forced, bool *did_work) WT_GCC_FUNC_DECL_ATTRIBUTE((warn_unused_result)) WT_GCC_FUNC_DECL_ATTRIBUTE((visibility("hidden")));
extern int __wt_log_slot_init(WT_SESSION_IMPL *session) WT_GCC_FUNC_DECL_ATTRIBUTE((warn_unused_result)) WT_GCC_FUNC_DECL_ATTRIBUTE((visibility("hidden")));
extern int __wt_log_slot_destroy(WT_SESSION_IMPL *session) WT_GCC_FUNC_DECL_ATTRIBUTE((warn_unused_result)) WT_GCC_FUNC_DECL_ATTRIBUTE((visibility("hidden")));
extern int __wt_log_slot_join(WT_SESSION_IMPL *session, uint64_t mysize, uint32_t flags, WT_MYSLOT *myslot) WT_GCC_FUNC_DECL_ATTRIBUTE((warn_unused_result)) WT_GCC_FUNC_DECL_ATTRIBUTE((visibility("hidden")));