diff options
author | Randolph Tan <randolph@10gen.com> | 2022-02-22 18:33:00 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-03-16 17:53:27 +0000 |
commit | 8ac94fc68d134eaef7fb3815d25e98ef99f034a3 (patch) | |
tree | 13788b9adf10b34bdd91328acd2fcb486fbcbd25 /src/mongo/db/query/internal_plans.h | |
parent | b93f3757801f1b452391b8e3c277d092bd0fe835 (diff) | |
download | mongo-8ac94fc68d134eaef7fb3815d25e98ef99f034a3.tar.gz |
SERVER-6491 Prevent dropping shard key index when alternative index doesn't exist
Diffstat (limited to 'src/mongo/db/query/internal_plans.h')
-rw-r--r-- | src/mongo/db/query/internal_plans.h | 5 |
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 781b336526f..967f9c3b073 100644 --- a/src/mongo/db/query/internal_plans.h +++ b/src/mongo/db/query/internal_plans.h @@ -35,6 +35,7 @@ #include "mongo/db/query/index_bounds.h" #include "mongo/db/query/plan_executor.h" #include "mongo/db/record_id.h" +#include "mongo/db/s/shard_key_index_util.h" namespace mongo { @@ -135,7 +136,7 @@ public: static std::unique_ptr<PlanExecutor, PlanExecutor::Deleter> shardKeyIndexScan( OperationContext* opCtx, const CollectionPtr* collection, - const IndexCatalog::ShardKeyIndex& shardKeyIdx, + const ShardKeyIndex& shardKeyIdx, const BSONObj& startKey, const BSONObj& endKey, BoundInclusion boundInclusion, @@ -153,7 +154,7 @@ public: OperationContext* opCtx, const CollectionPtr* collection, std::unique_ptr<DeleteStageParams> params, - const IndexCatalog::ShardKeyIndex& shardKeyIdx, + const ShardKeyIndex& shardKeyIdx, const BSONObj& startKey, const BSONObj& endKey, BoundInclusion boundInclusion, |