diff options
author | Judah Schvimer <judah@mongodb.com> | 2016-04-25 13:50:42 -0400 |
---|---|---|
committer | Judah Schvimer <judah@mongodb.com> | 2016-04-25 13:50:42 -0400 |
commit | ac3f0e4414201c8a33e1f48f8fb51e734acaf597 (patch) | |
tree | 77a7fd31215e5e39bb2733ce91a6d75de92ef8f6 /src/mongo/db/write_concern.cpp | |
parent | 74c1d8599bed7b2481bd2e7d9f3814a02c789536 (diff) | |
download | mongo-ac3f0e4414201c8a33e1f48f8fb51e734acaf597.tar.gz |
SERVER-22694 removed setupSynchronousCommit() and goingToWaitUntilDurable()
Diffstat (limited to 'src/mongo/db/write_concern.cpp')
-rw-r--r-- | src/mongo/db/write_concern.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/mongo/db/write_concern.cpp b/src/mongo/db/write_concern.cpp index dfd8540fea6..3bde99387b7 100644 --- a/src/mongo/db/write_concern.cpp +++ b/src/mongo/db/write_concern.cpp @@ -58,16 +58,6 @@ static ServerStatusMetricField<TimerStats> displayGleLatency("getLastError.wtime static Counter64 gleWtimeouts; static ServerStatusMetricField<Counter64> gleWtimeoutsDisplay("getLastError.wtimeouts", &gleWtimeouts); - -void setupSynchronousCommit(OperationContext* txn) { - const WriteConcernOptions& writeConcern = txn->getWriteConcern(); - - if (writeConcern.syncMode == WriteConcernOptions::SyncMode::JOURNAL || - writeConcern.syncMode == WriteConcernOptions::SyncMode::FSYNC) { - txn->recoveryUnit()->goingToWaitUntilDurable(); - } -} - namespace { const std::string kLocalDB = "local"; } // namespace |