summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/commands.h')
-rw-r--r--src/mongo/db/commands.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/commands.h b/src/mongo/db/commands.h
index fdc4a24085b..1ecd810911c 100644
--- a/src/mongo/db/commands.h
+++ b/src/mongo/db/commands.h
@@ -239,6 +239,11 @@ struct CommandHelpers {
const Command* command,
const OpMsgRequest& request);
+ /**
+ * Returns OK if command is allowed to run under a transaction in the given database.
+ */
+ static Status canUseTransactions(StringData dbName, StringData cmdName);
+
static constexpr StringData kHelpFieldName = "help"_sd;
};