summaryrefslogtreecommitdiff
path: root/src/mongo/db/write_concern.cpp
diff options
context:
space:
mode:
authorDaniel Gottlieb <daniel.gottlieb@10gen.com>2017-03-02 10:39:08 -0500
committerDaniel Gottlieb <daniel.gottlieb@10gen.com>2017-03-02 11:21:41 -0500
commit6753fb211150d85eed71a84393bd13f2a07a8865 (patch)
tree1462df941741ffad092d47e12bab6555a91f5b6b /src/mongo/db/write_concern.cpp
parente2d27510a270876a8b672171ce95c38b7c003199 (diff)
downloadmongo-6753fb211150d85eed71a84393bd13f2a07a8865.tar.gz
SERVER-18410: Replace RWLock with OperationContext/LockManager
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 6886bed64ca..77a90f0e396 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(true);
+ result->fsyncFiles = storageEngine->flushAllFiles(txn, true);
} else {
// We only need to commit the journal if we're durable
txn->recoveryUnit()->waitUntilDurable();