diff options
Diffstat (limited to 'src/mongo/db/op_observer_impl.cpp')
-rw-r--r-- | src/mongo/db/op_observer_impl.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/mongo/db/op_observer_impl.cpp b/src/mongo/db/op_observer_impl.cpp index ca72ef06a95..e44c135e7d2 100644 --- a/src/mongo/db/op_observer_impl.cpp +++ b/src/mongo/db/op_observer_impl.cpp @@ -64,8 +64,8 @@ #include "mongo/util/fail_point_service.h" namespace mongo { -using repl::OplogEntry; using repl::MutableOplogEntry; +using repl::OplogEntry; namespace { @@ -436,11 +436,8 @@ void OpObserverImpl::onUpdate(OperationContext* opCtx, const OplogUpdateEntryArg if (!collElem || args.nss.ns() == collElem.String()) { uasserted(40654, str::stream() << "failCollectionUpdates failpoint enabled, namespace: " - << args.nss.ns() - << ", update: " - << args.updateArgs.update - << " on document with " - << args.updateArgs.criteria); + << args.nss.ns() << ", update: " << args.updateArgs.update + << " on document with " << args.updateArgs.criteria); } } @@ -988,7 +985,6 @@ void logCommitOrAbortForPreparedTransaction(OperationContext* opCtx, writeConflictRetry( opCtx, "onPreparedTransactionCommitOrAbort", NamespaceString::kRsOplogNamespace.ns(), [&] { - // Writes to the oplog only require a Global intent lock. Guaranteed by // OplogSlotReserver. invariant(opCtx->lockState()->isWriteLocked()); |