summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/internal_plans.h
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2014-01-04 01:38:14 -0500
committerEliot Horowitz <eliot@10gen.com>2014-01-09 14:21:49 -0500
commitea5d43f74e4ddf990a156ce37b05369cd9ee3479 (patch)
treefa61abd8eb81549c34b101cf217da74b3f20da04 /src/mongo/db/query/internal_plans.h
parent6b2bd70cf5d7f2cb04b351fc24279b702ebb6fec (diff)
downloadmongo-ea5d43f74e4ddf990a156ce37b05369cd9ee3479.tar.gz
SERVER-12213: do not use idxNo or IndexDetails in any non-short term transient way
Diffstat (limited to 'src/mongo/db/query/internal_plans.h')
-rw-r--r--src/mongo/db/query/internal_plans.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/query/internal_plans.h b/src/mongo/db/query/internal_plans.h
index fe96e1a9930..7fdf03fba98 100644
--- a/src/mongo/db/query/internal_plans.h
+++ b/src/mongo/db/query/internal_plans.h
@@ -86,13 +86,14 @@ namespace mongo {
/**
* Return an index scan. Caller owns returned pointer.
*/
- static Runner* indexScan(const IndexDescriptor* descriptor,
+ static Runner* indexScan(const Collection* collection,
+ const IndexDescriptor* descriptor,
const BSONObj& startKey, const BSONObj& endKey,
bool endKeyInclusive, Direction direction = FORWARD,
int options = 0) {
verify(descriptor);
- const NamespaceString& ns = descriptor->getIndexedCollection()->ns();
+ const NamespaceString& ns = collection->ns();
IndexScanParams params;
params.descriptor = descriptor;