summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/storage_engine_impl.cpp
diff options
context:
space:
mode:
authorGregory Noma <gregory.noma@gmail.com>2020-06-09 10:05:41 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-06-09 14:32:47 +0000
commit514a8301fbe6919ced991942519459854c6cc570 (patch)
tree5c21a7ee2bfb9bc1af52f7e2147c08d2e62c3eda /src/mongo/db/storage/storage_engine_impl.cpp
parent9c270b00716f910d683cbdfd38b0ccec4db90af1 (diff)
downloadmongo-514a8301fbe6919ced991942519459854c6cc570.tar.gz
SERVER-48415 Write placeholder document to internal table on clean shutdown for resumable index builds
Diffstat (limited to 'src/mongo/db/storage/storage_engine_impl.cpp')
-rw-r--r--src/mongo/db/storage/storage_engine_impl.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/storage/storage_engine_impl.cpp b/src/mongo/db/storage/storage_engine_impl.cpp
index c353259901d..8a8a1219d8e 100644
--- a/src/mongo/db/storage/storage_engine_impl.cpp
+++ b/src/mongo/db/storage/storage_engine_impl.cpp
@@ -860,7 +860,8 @@ bool StorageEngineImpl::supportsResumableIndexBuilds() const {
return enableResumableIndexBuilds && supportsReadConcernMajority() && !isEphemeral() &&
serverGlobalParams.featureCompatibility.isVersionInitialized() &&
serverGlobalParams.featureCompatibility.getVersion() ==
- ServerGlobalParams::FeatureCompatibility::Version::kFullyUpgradedTo46;
+ ServerGlobalParams::FeatureCompatibility::Version::kFullyUpgradedTo46 &&
+ !repl::ReplSettings::shouldRecoverFromOplogAsStandalone();
}
bool StorageEngineImpl::supportsPendingDrops() const {