summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands.cpp
diff options
context:
space:
mode:
authorLingzhi Deng <lingzhi.deng@mongodb.com>2019-05-20 00:49:33 -0400
committerLingzhi Deng <lingzhi.deng@mongodb.com>2019-05-23 16:46:30 -0400
commit8a89b076d28a904c200e491698ef1169dd8a7254 (patch)
treedc32fa3bdc62cdd9f8b9b84777f0df8f03f43cec /src/mongo/db/commands.cpp
parent47d4eca3fcdfa8eed0f1bef28021c8603452dec3 (diff)
downloadmongo-8a89b076d28a904c200e491698ef1169dd8a7254.tar.gz
SERVER-40938: disallow afterClusterTime and ignore prepare conflicts for dbhash and map-reduce
Diffstat (limited to 'src/mongo/db/commands.cpp')
-rw-r--r--src/mongo/db/commands.cpp4
1 files changed, 4 insertions, 0 deletions
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));