diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2014-12-03 10:08:39 -0500 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2014-12-03 10:59:05 -0500 |
commit | 9a143e7fbaf3c031775a7f8d563d9badce5c97da (patch) | |
tree | 4bb852fe69194f6551b16a1c905b3b0802d675ad /src/mongo/db/range_deleter.cpp | |
parent | 3742b75049abfdb29fe5e5fe37df0f0d7ecb2873 (diff) | |
download | mongo-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.cpp | 6 |
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(); |