From 8a89b076d28a904c200e491698ef1169dd8a7254 Mon Sep 17 00:00:00 2001 From: Lingzhi Deng Date: Mon, 20 May 2019 00:49:33 -0400 Subject: SERVER-40938: disallow afterClusterTime and ignore prepare conflicts for dbhash and map-reduce --- src/mongo/db/commands.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/mongo/db/commands.cpp') diff --git a/src/mongo/db/commands.cpp b/src/mongo/db/commands.cpp index ea2641218d7..8efc03ab32d 100644 --- a/src/mongo/db/commands.cpp +++ b/src/mongo/db/commands.cpp @@ -616,6 +616,10 @@ private: return _command->allowsAfterClusterTime(cmdObj()); } + bool canIgnorePrepareConflicts() const override { + return _command->canIgnorePrepareConflicts(); + } + void doCheckAuthorization(OperationContext* opCtx) const override { uassertStatusOK(_command->checkAuthForOperation( opCtx, _request->getDatabase().toString(), _request->body)); -- cgit v1.2.1