Skip to content

Commit d438fbd

Browse files
committed
[df] Align RDataSource cleanup routine with other sources
The call to cleanup routines was introduced in commit 0a719b4 The commit description informs it was done to avoid having setup and teardown routines called multiple times for the same column. In single-thread processing, the concept of one task is the processing of the entire computation graph for that run. As such, CleanupTask is called in RunTreeReader and RunEmptySource at the end of the function. In the case of RunDataSource, this routine is called in-between every event range processing. This commit aligns the RunDataSource logic with the logic of the other two single-thread processing methods, i.e. CleanupTask is now called at the end of the run.
1 parent 2fbb680 commit d438fbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tree/dataframe/src/RLoopManager.cxx

+1-1
Original file line numberDiff line numberDiff line change
@@ -737,10 +737,10 @@ void RLoopManager::RunDataSource()
737737
{
738738
assert(fDataSource != nullptr);
739739
DSRunRAII _{*fDataSource};
740+
RCallCleanUpTask cleanup(*this);
740741
auto ranges = fDataSource->GetEntryRanges();
741742
while (!ranges.empty() && fNStopsReceived < fNChildren) {
742743
RDSRangeRAII __{*this, 0u, 0ull};
743-
RCallCleanUpTask cleanup(*this);
744744
try {
745745
for (const auto &range : ranges) {
746746
const auto start = range.first;

0 commit comments

Comments
 (0)