summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mongo/db/repl/sync_tail.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/mongo/db/repl/sync_tail.cpp b/src/mongo/db/repl/sync_tail.cpp
index 5b86c30bd75..6203d6f37f3 100644
--- a/src/mongo/db/repl/sync_tail.cpp
+++ b/src/mongo/db/repl/sync_tail.cpp
@@ -326,13 +326,8 @@ Status SyncTail::syncApply(OperationContext* opCtx,
};
if (opType == OpTypeEnum::kNoop) {
- if (nss.db() == "") {
- incrementOpsAppliedStats();
- return Status::OK();
- }
- Lock::DBLock dbLock(opCtx, nss.db(), MODE_X);
- OldClientContext ctx(opCtx, nss.ns());
- return finishApply(applyOp(ctx.db()));
+ incrementOpsAppliedStats();
+ return Status::OK();
} else if (OplogEntry::isCrudOpType(opType)) {
return finishApply(writeConflictRetry(opCtx, "syncApply_CRUD", nss.ns(), [&] {
// Need to throw instead of returning a status for it to be properly ignored.