Skip to content

Commit 649be48

Browse files
authored
DPL: try to re-add AOD writer regardless if it is already present (#7636)
1 parent 93cc9b8 commit 649be48

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Framework/Core/src/ArrowSupport.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,7 @@ o2::framework::ServiceSpec ArrowSupport::arrowBackendSpec()
487487

488488
if (writer != workflow.end()) {
489489
workflow.erase(writer);
490+
}
490491
// replace writer as some outputs may have become dangling and some are now consumed
491492
auto [outputsInputs, outputTypes] = WorkflowHelpers::analyzeOutputs(workflow);
492493

@@ -511,8 +512,7 @@ o2::framework::ServiceSpec ArrowSupport::arrowBackendSpec()
511512
// add TFNumber as input to the writer
512513
outputsInputsAOD.emplace_back(InputSpec{"tfn", "TFN", "TFNumber"});
513514
workflow.push_back(CommonDataProcessors::getGlobalAODSink(dod, outputsInputsAOD));
514-
}
515-
} },
515+
} },
516516
.kind = ServiceKind::Global};
517517
}
518518

0 commit comments

Comments
 (0)