diff options
author | Jack Mulrow <jack.mulrow@mongodb.com> | 2022-03-02 18:08:55 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-03-02 18:44:45 +0000 |
commit | e27b00089fa1c46699b7a32b697304f7cd09386f (patch) | |
tree | 806d4ca7f72eddad930a0fbc85b847ca71d338d7 /src/mongo/db/transaction_validation.h | |
parent | 531c70336ce6b0d5c95d335deb053bdd8cf485e5 (diff) | |
download | mongo-e27b00089fa1c46699b7a32b697304f7cd09386f.tar.gz |
SERVER-64105 Support stmtIds in the transaction API
Diffstat (limited to 'src/mongo/db/transaction_validation.h')
-rw-r--r-- | src/mongo/db/transaction_validation.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/transaction_validation.h b/src/mongo/db/transaction_validation.h index f2447f6ab3a..b3372dfe5b4 100644 --- a/src/mongo/db/transaction_validation.h +++ b/src/mongo/db/transaction_validation.h @@ -36,6 +36,11 @@ namespace mongo { /** + * Returns true if the given command name can run as a retryable write. + */ +bool isRetryableWriteCommand(StringData cmdName); + +/** * Returns true if the given cmd name is a transaction control command. These are also the only * commands allowed to specify write concern in a transaction. */ |