diff options
author | James Wahlin <james@mongodb.com> | 2018-02-28 16:28:20 -0500 |
---|---|---|
committer | James Wahlin <james@mongodb.com> | 2018-03-03 08:33:17 -0500 |
commit | 13b8e62cd9609f10688a1896cb80efa5d3c82859 (patch) | |
tree | ebd8a953e6ab3c9342ae17030ae6d1878ad24ea6 /src/mongo/db/write_concern.h | |
parent | a0617148fdce05cd5705613da1a206c16cd9e2c0 (diff) | |
download | mongo-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.h | 10 |
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() { |