diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2016-07-25 10:35:01 -0400 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2016-07-25 15:16:17 -0400 |
commit | 8855c03bdf307ef74825e0274344b1ce8df0852b (patch) | |
tree | 7267e9725bff6495956229c5b661bfb297ef0406 /src/mongo/db/write_concern.h | |
parent | 72728d0429e74e1bec1715b4339f60159b0d6b4e (diff) | |
download | mongo-8855c03bdf307ef74825e0274344b1ce8df0852b.tar.gz |
SERVER-25204 Allow writeConcern w:1 for 'local' on CSRS config servers
Diffstat (limited to 'src/mongo/db/write_concern.h')
-rw-r--r-- | src/mongo/db/write_concern.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/db/write_concern.h b/src/mongo/db/write_concern.h index eeff284ec61..9a9720f26ee 100644 --- a/src/mongo/db/write_concern.h +++ b/src/mongo/db/write_concern.h @@ -52,9 +52,11 @@ StatusWith<WriteConcernOptions> extractWriteConcern(OperationContext* txn, const bool supportsWriteConcern); /** - * Verifies that a WriteConcern is valid for this particular host. + * Verifies that a WriteConcern is valid for this particular host and database. */ -Status validateWriteConcern(OperationContext* txn, const WriteConcernOptions& writeConcern); +Status validateWriteConcern(OperationContext* txn, + const WriteConcernOptions& writeConcern, + StringData dbName); struct WriteConcernResult { WriteConcernResult() { |