diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2015-02-23 11:37:20 -0500 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2015-03-03 10:53:07 -0500 |
commit | 41986e669a4ef32b38c433a2cfd0b70e872e6899 (patch) | |
tree | 675ec225c7e9fad5902a78e71efc2e6c9d167325 /src/mongo/bson/bsonmisc.h | |
parent | acea28520290e793c1ff9e6ed4117ff543c59a98 (diff) | |
download | mongo-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/bson/bsonmisc.h')
-rw-r--r-- | src/mongo/bson/bsonmisc.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mongo/bson/bsonmisc.h b/src/mongo/bson/bsonmisc.h index 21cbc135b8c..483528d80e0 100644 --- a/src/mongo/bson/bsonmisc.h +++ b/src/mongo/bson/bsonmisc.h @@ -29,10 +29,8 @@ #pragma once -#include <boost/noncopyable.hpp> -#include <memory> - #include "mongo/bson/bsonelement.h" +#include "mongo/bson/bsonobj.h" namespace mongo { |