OID: Don't run tree builder if we are dumping the data segment

We generally only dump the data segment when there is some issue running
tree builder and we want to process it off-host.
This commit is contained in:
Alastair Robertson 2023-11-15 11:16:53 -08:00 committed by Alastair Robertson
parent 592e182e0f
commit 352b71b02b

View File

@ -2869,6 +2869,9 @@ bool OIDebugger::processTargetData() {
if (!dumpDataSegment(req, outVec)) {
LOG(ERROR) << "Failed to dump data-segment for " << req.arg;
}
// Skip running Tree Builder
continue;
}
auto typeInfo = typeInfos.find(req);
@ -2910,6 +2913,11 @@ bool OIDebugger::processTargetData() {
}
}
if (treeBuilderConfig.dumpDataSegment) {
// Tree Builder was not run
return true;
}
if (typeTree.emptyOutput()) {
LOG(FATAL)
<< "Nothing to output: failed to run TreeBuilder on any argument";