diff options
author | Haley Connelly <haley.connelly@mongodb.com> | 2021-12-20 23:51:23 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-12-21 00:32:35 +0000 |
commit | 3130c8146113e2c2efb4615cf93630f42fd9f1bf (patch) | |
tree | bba701f19253e4ba2c32e8309db1a4b702338a57 /src/mongo/db/catalog/index_catalog_impl.h | |
parent | 60c56d04a121194e16884eed520eb0676cbf0261 (diff) | |
download | mongo-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.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, |