summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/repl_client_info.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/repl/repl_client_info.cpp')
-rw-r--r--src/mongo/db/repl/repl_client_info.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/repl/repl_client_info.cpp b/src/mongo/db/repl/repl_client_info.cpp
index 21b6d0980ea..d72d8ca28c3 100644
--- a/src/mongo/db/repl/repl_client_info.cpp
+++ b/src/mongo/db/repl/repl_client_info.cpp
@@ -85,7 +85,7 @@ void ReplClientInfo::setLastOpToSystemLastOpTime(OperationContext* opCtx) {
systemOpTime = replCoord->getMyLastAppliedOpTime();
if (status == ErrorCodes::OplogOperationUnsupported ||
status == ErrorCodes::NamespaceNotFound ||
- status == ErrorCodes::CollectionIsEmpty || ErrorCodes::isNotMasterError(status)) {
+ status == ErrorCodes::CollectionIsEmpty || ErrorCodes::isNotPrimaryError(status)) {
// It is ok if the storage engine does not support getLatestOplogTimestamp() or
// if the oplog is empty. If the node stepped down in between, it is correct to
// use lastAppliedOpTime as last OpTime.