summaryrefslogtreecommitdiff
path: root/src/mongo/s/commands/cluster_distinct_cmd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/s/commands/cluster_distinct_cmd.cpp')
-rw-r--r--src/mongo/s/commands/cluster_distinct_cmd.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/s/commands/cluster_distinct_cmd.cpp b/src/mongo/s/commands/cluster_distinct_cmd.cpp
index 07c814515f6..41a6bee6d61 100644
--- a/src/mongo/s/commands/cluster_distinct_cmd.cpp
+++ b/src/mongo/s/commands/cluster_distinct_cmd.cpp
@@ -93,6 +93,10 @@ public:
out->push_back(Privilege(parseResourcePattern(dbname, cmdObj), actions));
}
+ bool allowedInTransactions() const final {
+ return true;
+ }
+
Status explain(OperationContext* opCtx,
const OpMsgRequest& opMsgRequest,
ExplainOptions::Verbosity verbosity,