summaryrefslogtreecommitdiff
path: root/src/mongo/db/write_concern.h
diff options
context:
space:
mode:
authorJames Wahlin <james@mongodb.com>2018-02-28 16:28:20 -0500
committerJames Wahlin <james@mongodb.com>2018-03-03 08:33:17 -0500
commit13b8e62cd9609f10688a1896cb80efa5d3c82859 (patch)
treeebd8a953e6ab3c9342ae17030ae6d1878ad24ea6 /src/mongo/db/write_concern.h
parenta0617148fdce05cd5705613da1a206c16cd9e2c0 (diff)
downloadmongo-13b8e62cd9609f10688a1896cb80efa5d3c82859.tar.gz
SERVER-33355 Support readConcern level snapshot reads on secondaries
Diffstat (limited to 'src/mongo/db/write_concern.h')
-rw-r--r--src/mongo/db/write_concern.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/mongo/db/write_concern.h b/src/mongo/db/write_concern.h
index 60c31e6ff26..6a3021c969c 100644
--- a/src/mongo/db/write_concern.h
+++ b/src/mongo/db/write_concern.h
@@ -52,16 +52,12 @@ bool commandSpecifiesWriteConcern(const BSONObj& cmdObj);
* Verifies that the writeConcern is of type Object (BSON type) and
* that the resulting writeConcern is valid for this particular host.
*/
-StatusWith<WriteConcernOptions> extractWriteConcern(OperationContext* opCtx,
- const BSONObj& cmdObj,
- const std::string& dbName);
+StatusWith<WriteConcernOptions> extractWriteConcern(OperationContext* opCtx, const BSONObj& cmdObj);
/**
- * Verifies that a WriteConcern is valid for this particular host and database.
+ * Verifies that a WriteConcern is valid for this particular host.
*/
-Status validateWriteConcern(OperationContext* opCtx,
- const WriteConcernOptions& writeConcern,
- StringData dbName);
+Status validateWriteConcern(OperationContext* opCtx, const WriteConcernOptions& writeConcern);
struct WriteConcernResult {
WriteConcernResult() {