diff options
author | Tommaso Tocci <tommaso.tocci@mongodb.com> | 2023-03-10 11:57:47 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-03-10 12:45:38 +0000 |
commit | 49320a8df6dad547f4465e5ac32b156fd4343400 (patch) | |
tree | 0d65b38cc3040b985e739af18127278183d895aa /src/mongo/db/s/range_deletion_util.cpp | |
parent | 66644d0b12d9e598adf0f6af791605b146aa6b7a (diff) | |
download | mongo-49320a8df6dad547f4465e5ac32b156fd4343400.tar.gz |
SERVER-74668 findShardKeyPrefixedIndex func extracts index catalog from CollectionPtr
Diffstat (limited to 'src/mongo/db/s/range_deletion_util.cpp')
-rw-r--r-- | src/mongo/db/s/range_deletion_util.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/s/range_deletion_util.cpp b/src/mongo/db/s/range_deletion_util.cpp index 16ff5b09477..f6f73a32db8 100644 --- a/src/mongo/db/s/range_deletion_util.cpp +++ b/src/mongo/db/s/range_deletion_util.cpp @@ -91,8 +91,8 @@ StatusWith<int> deleteNextBatch(OperationContext* opCtx, // The IndexChunk has a keyPattern that may apply to more than one index - we need to // select the index and get the full index keyPattern here. - auto shardKeyIdx = findShardKeyPrefixedIndex( - opCtx, collection, collection->getIndexCatalog(), keyPattern, /*requireSingleKey=*/false); + const auto shardKeyIdx = + findShardKeyPrefixedIndex(opCtx, collection, keyPattern, /*requireSingleKey=*/false); if (!shardKeyIdx) { LOGV2_ERROR(23765, "Unable to find shard key index", |