diff options
author | Judah Schvimer <judah@mongodb.com> | 2018-05-10 10:24:11 -0400 |
---|---|---|
committer | Judah Schvimer <judah@mongodb.com> | 2018-05-10 10:26:09 -0400 |
commit | 120e53540fb94330b6594399bdff3ccc99625278 (patch) | |
tree | 5d0d074bb1c2417c656c3cd451a9e6a85e8b410d /src/mongo/db/repl/replication_coordinator_impl.cpp | |
parent | 25202711c79bb4da07dd2ec320b8350db2fd2d7d (diff) | |
download | mongo-120e53540fb94330b6594399bdff3ccc99625278.tar.gz |
SERVER-34780 Change --recoverFromOplogAsStandalone to setParameter
Diffstat (limited to 'src/mongo/db/repl/replication_coordinator_impl.cpp')
-rw-r--r-- | src/mongo/db/repl/replication_coordinator_impl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/repl/replication_coordinator_impl.cpp b/src/mongo/db/repl/replication_coordinator_impl.cpp index c11f221f245..5ee1c69554c 100644 --- a/src/mongo/db/repl/replication_coordinator_impl.cpp +++ b/src/mongo/db/repl/replication_coordinator_impl.cpp @@ -736,7 +736,7 @@ void ReplicationCoordinatorImpl::_startDataReplication(OperationContext* opCtx, void ReplicationCoordinatorImpl::startup(OperationContext* opCtx) { if (!isReplEnabled()) { - if (_settings.getShouldRecoverFromOplogAsStandalone()) { + if (ReplSettings::shouldRecoverFromOplogAsStandalone()) { if (!_storage->supportsRecoverToStableTimestamp(opCtx->getServiceContext())) { severe() << "Cannot use 'recoverFromOplogAsStandalone' with a storage engine that " "does not support recover to stable timestamp."; @@ -763,7 +763,7 @@ void ReplicationCoordinatorImpl::startup(OperationContext* opCtx) { return; } invariant(_settings.usingReplSets()); - invariant(!_settings.getShouldRecoverFromOplogAsStandalone()); + invariant(!ReplSettings::shouldRecoverFromOplogAsStandalone()); { stdx::lock_guard<stdx::mutex> lk(_mutex); |