diff options
author | Mathias Stearn <mathias@10gen.com> | 2014-04-30 17:23:11 -0400 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2014-05-01 12:34:13 -0400 |
commit | 4ac7bff98e0c6ffea094afa4155e83e4ce375fd2 (patch) | |
tree | 9d2daebfa3cda0fd56d9c2875c7af3aa9e3cf241 /src/mongo/db/ops | |
parent | 1f9286c1c7389f409aa94fafa68bf26e9a0c8313 (diff) | |
download | mongo-4ac7bff98e0c6ffea094afa4155e83e4ce375fd2.tar.gz |
SERVER-13643 Remove getDur() where we already have a TransactionExperiment
Diffstat (limited to 'src/mongo/db/ops')
-rw-r--r-- | src/mongo/db/ops/delete_executor.cpp | 2 | ||||
-rw-r--r-- | src/mongo/db/ops/update.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/ops/delete_executor.cpp b/src/mongo/db/ops/delete_executor.cpp index 248e240fd9f..fd79e0db5f9 100644 --- a/src/mongo/db/ops/delete_executor.cpp +++ b/src/mongo/db/ops/delete_executor.cpp @@ -185,7 +185,7 @@ namespace mongo { } if (!_request->isGod()) { - getDur().commitIfNeeded(); + txn->commitIfNeeded(); } if (debug && _request->isGod() && nDeleted == 100) { diff --git a/src/mongo/db/ops/update.cpp b/src/mongo/db/ops/update.cpp index 0d04aa63918..773ecf5a479 100644 --- a/src/mongo/db/ops/update.cpp +++ b/src/mongo/db/ops/update.cpp @@ -776,7 +776,7 @@ namespace mongo { } // Opportunity for journaling to write during the update. - getDur().commitIfNeeded(); + txn->commitIfNeeded(); } // TODO: Can this be simplified? |