summaryrefslogtreecommitdiff
path: root/src/mongo/db/write_concern.cpp
diff options
context:
space:
mode:
authorJudah Schvimer <judah@mongodb.com>2016-04-25 13:50:42 -0400
committerJudah Schvimer <judah@mongodb.com>2016-04-25 13:50:42 -0400
commitac3f0e4414201c8a33e1f48f8fb51e734acaf597 (patch)
tree77a7fd31215e5e39bb2733ce91a6d75de92ef8f6 /src/mongo/db/write_concern.cpp
parent74c1d8599bed7b2481bd2e7d9f3814a02c789536 (diff)
downloadmongo-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.cpp10
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