diff options
author | Eliot Horowitz <eliot@10gen.com> | 2013-10-30 16:36:01 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2013-11-02 13:19:54 -0400 |
commit | f4752b153a3294bd6dfbfb3b626526c7baf7f90e (patch) | |
tree | 298f68154117a8c6b32b6af2f306c15a93bd1800 /src/mongo/db/query/internal_plans.h | |
parent | c83e2593e8ad68bd2ad09eaaa4e28df34d0da068 (diff) | |
download | mongo-f4752b153a3294bd6dfbfb3b626526c7baf7f90e.tar.gz |
SERVER-11178: IndexScan now uses IndexCatalog classes
Diffstat (limited to 'src/mongo/db/query/internal_plans.h')
-rw-r--r-- | src/mongo/db/query/internal_plans.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mongo/db/query/internal_plans.h b/src/mongo/db/query/internal_plans.h index 71e7b1a9fbf..30c9825805c 100644 --- a/src/mongo/db/query/internal_plans.h +++ b/src/mongo/db/query/internal_plans.h @@ -86,15 +86,16 @@ namespace mongo { /** * Return an index scan. Caller owns returned pointer. */ - static Runner* indexScan(const StringData& ns, NamespaceDetails* nsd, int idxNo, + static Runner* indexScan(IndexDescriptor* descriptor, const BSONObj& startKey, const BSONObj& endKey, bool endKeyInclusive, Direction direction = FORWARD, int options = 0) { - verify(NULL != nsd); + verify(descriptor); + + const NamespaceString& ns = descriptor->getIndexedCollection()->ns(); IndexScanParams params; - params.descriptor = CatalogHack::getDescriptor(nsd, idxNo); - verify(NULL != params.descriptor); + params.descriptor = descriptor; params.direction = direction; params.bounds.isSimpleRange = true; params.bounds.startKey = startKey; |