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/db/auth/authz_manager_external_state_s.cpp | |
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/db/auth/authz_manager_external_state_s.cpp')
-rw-r--r-- | src/mongo/db/auth/authz_manager_external_state_s.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mongo/db/auth/authz_manager_external_state_s.cpp b/src/mongo/db/auth/authz_manager_external_state_s.cpp index 20e47afaed1..5d70845324f 100644 --- a/src/mongo/db/auth/authz_manager_external_state_s.cpp +++ b/src/mongo/db/auth/authz_manager_external_state_s.cpp @@ -245,7 +245,7 @@ namespace mongo { const NamespaceString& collectionName, const BSONObj& document, const BSONObj& writeConcern) { - return clusterInsert(collectionName, document, writeConcern, NULL); + return clusterInsert(collectionName, document, NULL); } Status AuthzManagerExternalStateMongos::update(OperationContext* txn, @@ -262,7 +262,6 @@ namespace mongo { updatePattern, upsert, multi, - writeConcern, &response); if (res.isOK()) { @@ -279,7 +278,7 @@ namespace mongo { const BSONObj& writeConcern, int* numRemoved) { BatchedCommandResponse response; - Status res = clusterDelete(collectionName, query, 0 /* limit */, writeConcern, &response); + Status res = clusterDelete(collectionName, query, 0 /* limit */, &response); if (res.isOK()) { *numRemoved = response.getN(); |