summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands.h
diff options
context:
space:
mode:
authorMatt Broadstone <mbroadst@mongodb.com>2022-02-01 14:55:44 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-02-01 16:12:55 +0000
commit1cc5df724ab48604e19a8b2f3703563c553b1ba0 (patch)
tree68493e81ddd2bc3fc790dd626ad2de689fef405c /src/mongo/db/commands.h
parentb2098c676bdc64e3194734fa632b133c47496646 (diff)
downloadmongo-1cc5df724ab48604e19a8b2f3703563c553b1ba0.tar.gz
SERVER-62609 Represent the w parameter of WriteConcernOptions as a variant
Diffstat (limited to 'src/mongo/db/commands.h')
-rw-r--r--src/mongo/db/commands.h6
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.
*/