summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/range_deletion_util.cpp
diff options
context:
space:
mode:
authorTommaso Tocci <tommaso.tocci@mongodb.com>2023-03-10 11:57:47 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-03-10 12:45:38 +0000
commit49320a8df6dad547f4465e5ac32b156fd4343400 (patch)
tree0d65b38cc3040b985e739af18127278183d895aa /src/mongo/db/s/range_deletion_util.cpp
parent66644d0b12d9e598adf0f6af791605b146aa6b7a (diff)
downloadmongo-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.cpp4
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",