SERVER-112338 Fix indentation in IndexProbe toString() (#43013)

GitOrigin-RevId: f2dc9771a94b5cb48342eab4a01c37f5d23b0159
This commit is contained in:
Ben Shteinfeld 2025-10-22 15:30:30 -04:00 committed by MongoDB Bot
parent 52c0a0f46d
commit b6cdec1ed3
1 changed files with 2 additions and 1 deletions

View File

@ -2077,9 +2077,10 @@ IndexProbeNode::IndexProbeNode(NamespaceString nssArg, IndexEntry indexArg)
: nss(nssArg), index(indexArg) {}
void IndexProbeNode::appendToString(str::stream* ss, int indent) const {
addIndent(ss, indent);
*ss << "INDEX_PROBE\n";
addIndent(ss, indent + 1);
*ss << "Namespace: " << toStringForLogging(nss) << " Index: " << index.identifier.toString();
*ss << "Namespace: " << toStringForLogging(nss) << " Index: " << index.keyPattern << "\n";
}
std::unique_ptr<QuerySolutionNode> IndexProbeNode::clone() const {