summaryrefslogtreecommitdiff
path: root/src/mongo/db/write_concern.cpp
diff options
context:
space:
mode:
authorDaniel Gottlieb <daniel.gottlieb@10gen.com>2017-02-26 12:01:02 -0500
committerDaniel Gottlieb <daniel.gottlieb@10gen.com>2017-02-26 12:01:02 -0500
commitb94dd91adb6d8859ab5e5f91731be2e8571eed0c (patch)
treeef3116315d0f79c9e4f690fffc5bdabb93f4751c /src/mongo/db/write_concern.cpp
parentce23378926659bc50604032782485c2f962c37ac (diff)
downloadmongo-b94dd91adb6d8859ab5e5f91731be2e8571eed0c.tar.gz
revert "SERVER-18410: Replace RWLock with OperationContext/LockManager"
This reverts commit 9c9bbf3318113cfdd4d9b72f493b6ebd23f1837e.
Diffstat (limited to 'src/mongo/db/write_concern.cpp')
-rw-r--r--src/mongo/db/write_concern.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/write_concern.cpp b/src/mongo/db/write_concern.cpp
index 77a90f0e396..6886bed64ca 100644
--- a/src/mongo/db/write_concern.cpp
+++ b/src/mongo/db/write_concern.cpp
@@ -199,7 +199,7 @@ Status waitForWriteConcern(OperationContext* txn,
case WriteConcernOptions::SyncMode::FSYNC: {
StorageEngine* storageEngine = getGlobalServiceContext()->getGlobalStorageEngine();
if (!storageEngine->isDurable()) {
- result->fsyncFiles = storageEngine->flushAllFiles(txn, true);
+ result->fsyncFiles = storageEngine->flushAllFiles(true);
} else {
// We only need to commit the journal if we're durable
txn->recoveryUnit()->waitUntilDurable();