summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/find_cmd.cpp
diff options
context:
space:
mode:
authorRandolph Tan <randolph@10gen.com>2022-06-08 18:15:32 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-06-08 19:11:46 +0000
commit3a49875934cfd7e70d789b4ad7093286d189acc9 (patch)
tree0e5b718814c1301112c215177233cb62c930e026 /src/mongo/db/commands/find_cmd.cpp
parent7bc98aebab513db686b76f8cc0f406bc874a7ba9 (diff)
downloadmongo-3a49875934cfd7e70d789b4ad7093286d189acc9.tar.gz
SERVER-65101 Replace transaction and retryable write command allow lists with methods on Command
Diffstat (limited to 'src/mongo/db/commands/find_cmd.cpp')
-rw-r--r--src/mongo/db/commands/find_cmd.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/commands/find_cmd.cpp b/src/mongo/db/commands/find_cmd.cpp
index 5bae30e43c2..756e0e265b0 100644
--- a/src/mongo/db/commands/find_cmd.cpp
+++ b/src/mongo/db/commands/find_cmd.cpp
@@ -216,6 +216,10 @@ public:
return true;
}
+ bool allowedInTransactions() const final {
+ return true;
+ }
+
class Invocation final : public CommandInvocation {
public:
Invocation(const FindCmd* definition, const OpMsgRequest& request, StringData dbName)