summaryrefslogtreecommitdiff
path: root/src/mongo/s/query
diff options
context:
space:
mode:
authorAllison Easton <allison.easton@mongodb.com>2023-02-22 13:30:47 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-02-22 14:43:07 +0000
commit3ba9f5c9b6d4d8b4edab1aafe733a84c0c921744 (patch)
tree725291f7c13992dd49c9b95d450d83090bfa423f /src/mongo/s/query
parent89ee64e7e2c32bbee3691ba64be55a91be089256 (diff)
downloadmongo-3ba9f5c9b6d4d8b4edab1aafe733a84c0c921744.tar.gz
SERVER-73922 Remove placement and index info getters from the catalog cache
Diffstat (limited to 'src/mongo/s/query')
-rw-r--r--src/mongo/s/query/cluster_find.cpp4
-rw-r--r--src/mongo/s/query/sharded_agg_test_fixture.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/s/query/cluster_find.cpp b/src/mongo/s/query/cluster_find.cpp
index c1ce48563ed..4ef7f79b3f9 100644
--- a/src/mongo/s/query/cluster_find.cpp
+++ b/src/mongo/s/query/cluster_find.cpp
@@ -673,8 +673,8 @@ CursorId ClusterFind::runQuery(OperationContext* opCtx,
if (auto txnRouter = TransactionRouter::get(opCtx)) {
if (!txnRouter.canContinueOnStaleShardOrDbError(kFindCmdName, ex.toStatus())) {
if (ex.code() == ErrorCodes::ShardInvalidatedForTargeting) {
- (void)catalogCache->getCollectionPlacementInfoWithRefresh(opCtx,
- query.nss());
+ (void)catalogCache->getCollectionRoutingInfoWithPlacementRefresh(
+ opCtx, query.nss());
}
throw;
}
diff --git a/src/mongo/s/query/sharded_agg_test_fixture.h b/src/mongo/s/query/sharded_agg_test_fixture.h
index 87df3b43630..e87682c8f32 100644
--- a/src/mongo/s/query/sharded_agg_test_fixture.h
+++ b/src/mongo/s/query/sharded_agg_test_fixture.h
@@ -105,8 +105,8 @@ public:
expectCollectionAndIndexesAggregation(
nss, epoch, timestamp, UUID::gen(), shardKey, boost::none, {});
- const auto cm = future.default_timed_get();
- ASSERT(cm->isSharded());
+ const auto cri = future.default_timed_get();
+ ASSERT(cri->cm.isSharded());
}
protected: