mirror of https://github.com/mongodb/mongo
SERVER-105843 one more straggler toString call (#37113)
GitOrigin-RevId: 4e2d37f687970996918dd49b49421ec920cbbb62
This commit is contained in:
parent
26b937737a
commit
6070fbf65d
|
|
@ -55,7 +55,7 @@ MONGO_COMPILER_NOINLINE Status makeError(StringData baseMsg,
|
|||
|
||||
if (!elemName.empty()) {
|
||||
msg << " in element with field name '";
|
||||
msg << elemName.toString();
|
||||
msg << elemName;
|
||||
msg << "'";
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -97,7 +97,7 @@ static void findAllScalarPaths(std::vector<mongo::sbe::value::CellBlock::Path>&
|
|||
// Array elements have a field that is their index in the array. We shouldn't
|
||||
// append that field in the 'Path'.
|
||||
if (!previousIsArray) {
|
||||
path.push_back(sbe::value::CellBlock::Get{elem.fieldNameStringData().toString()});
|
||||
path.push_back(sbe::value::CellBlock::Get{std::string{elem.fieldNameStringData()}});
|
||||
}
|
||||
path.push_back(sbe::value::CellBlock::Id{});
|
||||
paths.push_back(path);
|
||||
|
|
@ -118,7 +118,7 @@ static void findAllScalarPaths(std::vector<mongo::sbe::value::CellBlock::Path>&
|
|||
// manually track when the element is an array element or an object.
|
||||
// If the next element is an object
|
||||
if (!previousIsArray) {
|
||||
path.push_back(sbe::value::CellBlock::Get{elem.fieldNameStringData().toString()});
|
||||
path.push_back(sbe::value::CellBlock::Get{std::string{elem.fieldNameStringData()}});
|
||||
}
|
||||
path.push_back(sbe::value::CellBlock::Traverse{});
|
||||
findAllScalarPaths(paths, obj.firstElement(), path, true);
|
||||
|
|
@ -129,7 +129,7 @@ static void findAllScalarPaths(std::vector<mongo::sbe::value::CellBlock::Path>&
|
|||
for (auto&& newElem : obj) {
|
||||
auto nPath = path;
|
||||
if (!previousIsArray) {
|
||||
nPath.push_back(sbe::value::CellBlock::Get{elem.fieldNameStringData().toString()});
|
||||
nPath.push_back(sbe::value::CellBlock::Get{std::string{elem.fieldNameStringData()}});
|
||||
nPath.push_back(sbe::value::CellBlock::Traverse{});
|
||||
}
|
||||
findAllScalarPaths(paths, newElem, nPath, false);
|
||||
|
|
|
|||
Loading…
Reference in New Issue