summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Gottlieb <daniel.gottlieb@mongodb.com>2022-12-07 16:20:13 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-12-20 16:07:41 +0000
commite341f8a191cc65478db89b0fb4ff8a7a7229a446 (patch)
treeca00fca50266f8593927cf79395c1e02873911de
parent877cf79d2dfce0679703dd6c7d561e97dbab362a (diff)
downloadmongo-e341f8a191cc65478db89b0fb4ff8a7a7229a446.tar.gz
SERVER-71905: Shutdown should check the initial data timestamp to determine use_timestamp value.
-rw-r--r--src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp b/src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp
index 1016cfac642..c7ebc9c45c0 100644
--- a/src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp
+++ b/src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp
@@ -748,7 +748,7 @@ void WiredTigerKVEngine::cleanShutdown() {
const Timestamp stableTimestamp = getStableTimestamp();
const Timestamp initialDataTimestamp = getInitialDataTimestamp();
- if (gTakeUnstableCheckpointOnShutdown) {
+ if (gTakeUnstableCheckpointOnShutdown || initialDataTimestamp.asULL() <= 1) {
closeConfig += "use_timestamp=false,";
} else if (!serverGlobalParams.enableMajorityReadConcern &&
stableTimestamp < initialDataTimestamp) {