diff options
author | Kevin Pulo <kevin.pulo@mongodb.com> | 2020-02-20 21:42:07 +1100 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-03-05 13:03:43 +0000 |
commit | 747ff353cbc819d032fa727d4bd7ffad16ea0437 (patch) | |
tree | d9b3d7e9af26138d7b74e0416a93d6110e326af0 /src/mongo/db/write_concern_options.cpp | |
parent | 7c4b875a8858c5bd5efc9bf4f285f7f440fdfdc0 (diff) | |
download | mongo-747ff353cbc819d032fa727d4bd7ffad16ea0437.tar.gz |
SERVER-45692 add explicit RWC to inter-node commands (even if merely kImplicitDefault)
Diffstat (limited to 'src/mongo/db/write_concern_options.cpp')
-rw-r--r-- | src/mongo/db/write_concern_options.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/write_concern_options.cpp b/src/mongo/db/write_concern_options.cpp index 298941fbdef..7ff06c9d224 100644 --- a/src/mongo/db/write_concern_options.cpp +++ b/src/mongo/db/write_concern_options.cpp @@ -72,6 +72,12 @@ const BSONObj WriteConcernOptions::Default = BSONObj(); const BSONObj WriteConcernOptions::Acknowledged(BSON("w" << W_NORMAL)); const BSONObj WriteConcernOptions::Unacknowledged(BSON("w" << W_NONE)); const BSONObj WriteConcernOptions::Majority(BSON("w" << WriteConcernOptions::kMajority)); + +// The "kImplicitDefault" write concern, used by internal operations, is deliberately empty (no +// 'w' or 'wtimeout' specified). This allows internal operations to specify a write concern, while +// still allowing it to be either w:1 or automatically upconverted to w:majority on configsvrs. +const BSONObj WriteConcernOptions::kImplicitDefault; + constexpr Seconds WriteConcernOptions::kWriteConcernTimeoutSystem; constexpr Seconds WriteConcernOptions::kWriteConcernTimeoutMigration; constexpr Seconds WriteConcernOptions::kWriteConcernTimeoutSharding; |