summaryrefslogtreecommitdiff
path: root/src/mongo/db/write_concern_options.cpp
diff options
context:
space:
mode:
authorSiyuan Zhou <siyuan.zhou@mongodb.com>2015-04-23 16:21:37 -0400
committerSiyuan Zhou <siyuan.zhou@mongodb.com>2015-04-29 15:47:36 -0400
commit27a8cb772d9e876fc7549a2c6ce3c1a62a4a394f (patch)
treeef70ac38c686d04291fb9413f59892d10baa065b /src/mongo/db/write_concern_options.cpp
parent917091361df13ee8f331bdd5742806bd45d909d0 (diff)
downloadmongo-27a8cb772d9e876fc7549a2c6ce3c1a62a4a394f.tar.gz
SERVER-5218 Batch oplog writes always wait for journal.
Diffstat (limited to 'src/mongo/db/write_concern_options.cpp')
-rw-r--r--src/mongo/db/write_concern_options.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/db/write_concern_options.cpp b/src/mongo/db/write_concern_options.cpp
index 50bf9cad040..993e373ec9b 100644
--- a/src/mongo/db/write_concern_options.cpp
+++ b/src/mongo/db/write_concern_options.cpp
@@ -39,6 +39,8 @@ namespace mongo {
const BSONObj WriteConcernOptions::Acknowledged(BSON("w" << W_NORMAL));
const BSONObj WriteConcernOptions::Unacknowledged(BSON("w" << W_NONE));
+ const string WriteConcernOptions::kMajority("majority");
+
static const BSONField<bool> mongosSecondaryThrottleField("_secondaryThrottle", true);
static const BSONField<bool> secondaryThrottleField("secondaryThrottle", true);
static const BSONField<BSONObj> writeConcernField("writeConcern");