diff options
Diffstat (limited to 'src/mongo/db/catalog/index_catalog_impl.h')
-rw-r--r-- | src/mongo/db/catalog/index_catalog_impl.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mongo/db/catalog/index_catalog_impl.h b/src/mongo/db/catalog/index_catalog_impl.h index 1e766198fce..ec15da563b8 100644 --- a/src/mongo/db/catalog/index_catalog_impl.h +++ b/src/mongo/db/catalog/index_catalog_impl.h @@ -136,10 +136,11 @@ public: * * If no such index exists, returns NULL. */ - const IndexDescriptor* findShardKeyPrefixedIndex(OperationContext* opCtx, - const CollectionPtr& collection, - const BSONObj& shardKey, - bool requireSingleKey) const override; + const boost::optional<ShardKeyIndex> findShardKeyPrefixedIndex( + OperationContext* opCtx, + const CollectionPtr& collection, + const BSONObj& shardKey, + bool requireSingleKey) const override; void findIndexByType(OperationContext* opCtx, const std::string& type, |