diff options
Diffstat (limited to 'src/mongo/db/transaction_validation.h')
-rw-r--r-- | src/mongo/db/transaction_validation.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/transaction_validation.h b/src/mongo/db/transaction_validation.h index 85895a4788d..ec22c7f304e 100644 --- a/src/mongo/db/transaction_validation.h +++ b/src/mongo/db/transaction_validation.h @@ -46,10 +46,11 @@ void validateWriteConcernForTransaction(const WriteConcernOptions& wcResult, Str bool shouldCommandSkipSessionCheckout(StringData cmdName); /** - * Throws if the given session options are invalid for the given command and target database. + * Throws if the given session options are invalid for the given command and target namespace. */ void validateSessionOptions(const OperationSessionInfoFromClient& sessionOptions, StringData cmdName, - StringData dbname); + const NamespaceString& nss, + bool allowTransactionsOnConfigDatabase); } // namespace mongo |