summaryrefslogtreecommitdiff
path: root/src/mongo/db/range_deleter.cpp
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2014-12-03 10:08:39 -0500
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2014-12-03 10:59:05 -0500
commit9a143e7fbaf3c031775a7f8d563d9badce5c97da (patch)
tree4bb852fe69194f6551b16a1c905b3b0802d675ad /src/mongo/db/range_deleter.cpp
parent3742b75049abfdb29fe5e5fe37df0f0d7ecb2873 (diff)
downloadmongo-9a143e7fbaf3c031775a7f8d563d9badce5c97da.tar.gz
SERVER-14062 Add OperationContext argument to RangeDeleter
Diffstat (limited to 'src/mongo/db/range_deleter.cpp')
-rw-r--r--src/mongo/db/range_deleter.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/range_deleter.cpp b/src/mongo/db/range_deleter.cpp
index 46d78d04b00..0ab1bcb7d33 100644
--- a/src/mongo/db/range_deleter.cpp
+++ b/src/mongo/db/range_deleter.cpp
@@ -212,7 +212,8 @@ namespace mongo {
}
}
- bool RangeDeleter::queueDelete(const RangeDeleterOptions& options,
+ bool RangeDeleter::queueDelete(OperationContext* txn,
+ const RangeDeleterOptions& options,
Notification* notifyDone,
std::string* errMsg) {
string dummy;
@@ -241,8 +242,7 @@ namespace mongo {
}
if (options.waitForOpenCursors) {
- boost::scoped_ptr<OperationContext> txn(getGlobalEnvironment()->newOpCtx());
- _env->getCursorIds(txn.get(), ns, &toDelete->cursorsToWait);
+ _env->getCursorIds(txn, ns, &toDelete->cursorsToWait);
}
toDelete->stats.queueStartTS = jsTime();