diff options
Diffstat (limited to 'src/mongo/db/commands.h')
-rw-r--r-- | src/mongo/db/commands.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/commands.h b/src/mongo/db/commands.h index 778c62cb2b6..cd7ff64b371 100644 --- a/src/mongo/db/commands.h +++ b/src/mongo/db/commands.h @@ -307,6 +307,12 @@ struct CommandHelpers { const OpMsgRequest& request); /** + * Asserts that a majority write concern was used for a command. + */ + static void uassertCommandRunWithMajority(StringData commandName, + const WriteConcernOptions& wc); + + /** * Verifies that command is allowed to run under a transaction in the given database or * namespace, and throws if that verification doesn't pass. */ |