summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog/index_catalog_impl.h
diff options
context:
space:
mode:
authorHaley Connelly <haley.connelly@mongodb.com>2021-12-20 23:51:23 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-12-21 00:32:35 +0000
commit3130c8146113e2c2efb4615cf93630f42fd9f1bf (patch)
treebba701f19253e4ba2c32e8309db1a4b702338a57 /src/mongo/db/catalog/index_catalog_impl.h
parent60c56d04a121194e16884eed520eb0676cbf0261 (diff)
downloadmongo-3130c8146113e2c2efb4615cf93630f42fd9f1bf.tar.gz
SERVER-60123 Support sharding by cluster key _id on explicitly created clustered collection
Diffstat (limited to 'src/mongo/db/catalog/index_catalog_impl.h')
-rw-r--r--src/mongo/db/catalog/index_catalog_impl.h9
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,