diff options
author | Qingyang Chen <qingyang.chen@10gen.com> | 2015-08-06 15:20:19 -0400 |
---|---|---|
committer | Qingyang Chen <qingyang.chen@10gen.com> | 2015-08-13 14:18:55 -0400 |
commit | 7c808909a8c0a746ffd2d8153c90a77be8b85204 (patch) | |
tree | 988b67fed5c71f6906a6e7852688576a456fdf6d /src/mongo/db/dbcommands.cpp | |
parent | 9eadefd1f5e9f9a480f14fe5ad0b1b1838e96005 (diff) | |
download | mongo-7c808909a8c0a746ffd2d8153c90a77be8b85204.tar.gz |
SERVER-19466 TTLMonitor::doTTLForIndex() use IXSCAN => FETCH => DELETE
Diffstat (limited to 'src/mongo/db/dbcommands.cpp')
-rw-r--r-- | src/mongo/db/dbcommands.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/mongo/db/dbcommands.cpp b/src/mongo/db/dbcommands.cpp index f0e232d3c5f..88c8b31d77b 100644 --- a/src/mongo/db/dbcommands.cpp +++ b/src/mongo/db/dbcommands.cpp @@ -766,7 +766,7 @@ public: result.append("millis", timer.millis()); return 1; } - exec = InternalPlanner::collectionScan(txn, ns, collection); + exec = InternalPlanner::collectionScan(txn, ns, collection, PlanExecutor::YIELD_MANUAL); } else if (min.isEmpty() || max.isEmpty()) { errmsg = "only one of min or max specified"; return false; @@ -790,7 +790,13 @@ public: min = Helpers::toKeyFormat(kp.extendRangeBound(min, false)); max = Helpers::toKeyFormat(kp.extendRangeBound(max, false)); - exec = InternalPlanner::indexScan(txn, collection, idx, min, max, false); + exec = InternalPlanner::indexScan(txn, + collection, + idx, + min, + max, + false, // endKeyInclusive + PlanExecutor::YIELD_MANUAL); } long long avgObjSize = collection->dataSize(txn) / collection->numRecords(txn); |