From d3c4ed928630e646bfc07af0ecc2201432ab22d7 Mon Sep 17 00:00:00 2001 From: Jonathan Reams Date: Thu, 23 Aug 2018 17:39:45 -0400 Subject: SERVER-31552 Allow users to be pinned in memory --- src/mongo/db/repl/oplog.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/mongo/db/repl/oplog.cpp') diff --git a/src/mongo/db/repl/oplog.cpp b/src/mongo/db/repl/oplog.cpp index 499312b3b14..cacb87ade6a 100644 --- a/src/mongo/db/repl/oplog.cpp +++ b/src/mongo/db/repl/oplog.cpp @@ -1668,11 +1668,8 @@ Status applyCommand_inlock(OperationContext* opCtx, } } - // AuthorizationManager's logOp method registers a RecoveryUnit::Change - // and to do so we need to have begun a UnitOfWork - WriteUnitOfWork wuow(opCtx); + getGlobalAuthorizationManager()->logOp(opCtx, opType, nss, o, nullptr); - wuow.commit(); return Status::OK(); } -- cgit v1.2.1