summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/sbe_cached_solution_planner.cpp
diff options
context:
space:
mode:
authorSophia Tan <sophia_tll@hotmail.com>2023-04-18 07:41:17 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-04-18 08:57:59 +0000
commit274cb477d2a1b64ac81b85e9f1b3172387ce0184 (patch)
treee89f778fa52a40413403b6a125b69271cf8469c0 /src/mongo/db/query/sbe_cached_solution_planner.cpp
parent8863b04c282557081cf2634bce0e26f4fa5389b2 (diff)
downloadmongo-274cb477d2a1b64ac81b85e9f1b3172387ce0184.tar.gz
SERVER-74486 Always include tenant in collection name attributes in error messages
Diffstat (limited to 'src/mongo/db/query/sbe_cached_solution_planner.cpp')
-rw-r--r--src/mongo/db/query/sbe_cached_solution_planner.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/query/sbe_cached_solution_planner.cpp b/src/mongo/db/query/sbe_cached_solution_planner.cpp
index 9f551b809e9..c5e9a8280a8 100644
--- a/src/mongo/db/query/sbe_cached_solution_planner.cpp
+++ b/src/mongo/db/query/sbe_cached_solution_planner.cpp
@@ -67,7 +67,8 @@ CandidatePlans CachedSolutionPlanner::plan(
if (!QueryPlannerAnalysis::isEligibleForHashJoin(collectionInfo->second)) {
return replan(/* shouldCache */ true,
- str::stream() << "Foreign collection " << foreignCollection
+ str::stream() << "Foreign collection "
+ << foreignCollection.toStringForErrorMsg()
<< " is not eligible for hash join anymore");
}
}