summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/replication_coordinator_impl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/repl/replication_coordinator_impl.cpp')
-rw-r--r--src/mongo/db/repl/replication_coordinator_impl.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mongo/db/repl/replication_coordinator_impl.cpp b/src/mongo/db/repl/replication_coordinator_impl.cpp
index c7f2cc07184..88d3e717419 100644
--- a/src/mongo/db/repl/replication_coordinator_impl.cpp
+++ b/src/mongo/db/repl/replication_coordinator_impl.cpp
@@ -564,9 +564,8 @@ void ReplicationCoordinatorImpl::_finishLoadLocalConfig(
} else {
// The node is an arbiter hence will not need logical clock for external operations.
LogicalClock::get(getServiceContext())->disable();
- auto validator = LogicalTimeValidator::get(getServiceContext());
- if (validator) {
- validator->resetKeyManager();
+ if (auto validator = LogicalTimeValidator::get(getServiceContext())) {
+ validator->stopKeyManager();
}
}