summaryrefslogtreecommitdiff
path: root/src/mongo/db/write_concern_options.cpp
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2015-02-23 11:37:20 -0500
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2015-03-03 10:53:07 -0500
commit41986e669a4ef32b38c433a2cfd0b70e872e6899 (patch)
tree675ec225c7e9fad5902a78e71efc2e6c9d167325 /src/mongo/db/write_concern_options.cpp
parentacea28520290e793c1ff9e6ed4117ff543c59a98 (diff)
downloadmongo-41986e669a4ef32b38c433a2cfd0b70e872e6899.tar.gz
SERVER-17151 ConfigCoordinator should not call fsync
This is expensive to do, especially with WiredTiger and is not a deterministic check. This change replaces it with something cheaper, but has the same outcome - validates that previous writes were successfully journaled, which is an approximate predictor that subsequent writes have high chance of succeeding.
Diffstat (limited to 'src/mongo/db/write_concern_options.cpp')
-rw-r--r--src/mongo/db/write_concern_options.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/mongo/db/write_concern_options.cpp b/src/mongo/db/write_concern_options.cpp
index dd8b14cdb05..5c0102ebc4a 100644
--- a/src/mongo/db/write_concern_options.cpp
+++ b/src/mongo/db/write_concern_options.cpp
@@ -37,7 +37,6 @@ namespace mongo {
const BSONObj WriteConcernOptions::Default = BSONObj();
const BSONObj WriteConcernOptions::Acknowledged(BSON("w" << W_NORMAL));
- const BSONObj WriteConcernOptions::AllConfigs = BSONObj();
const BSONObj WriteConcernOptions::Unacknowledged(BSON("w" << W_NONE));
static const BSONField<bool> mongosSecondaryThrottleField("_secondaryThrottle", true);