summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJudah Schvimer <judah@mongodb.com>2019-05-13 14:20:51 -0400
committerJudah Schvimer <judah@mongodb.com>2019-05-13 14:20:51 -0400
commit1c15dffa313e6b2ab49284ad0d93c206e14cd054 (patch)
treedc38642055d7b08287582c2e33b8a695afbfde75 /src
parent18e2c6d476b07589b9714d5391b5408a62f782e6 (diff)
downloadmongo-1c15dffa313e6b2ab49284ad0d93c206e14cd054.tar.gz
SERVER-41090 remove noop oplog entry DB X lock acquisition
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.