Skip to content

Commit

Permalink
traverser: don't prune by subplan for leaf vertices
Browse files Browse the repository at this point in the history
  • Loading branch information
milroy committed Nov 5, 2024
1 parent 5ac0773 commit 8234a69
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions resource/traversers/dfu_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,11 @@ int dfu_impl_t::by_subplan (const jobmeta_t &meta,
int saved_errno = errno;
planner_multi_t *p = (*m_graph)[u].idata.subplans[s];

if (!p) {
// Subplan is null if u is a leaf.
rc = 0;
goto done;
}
if (resource.user_data.empty ()) {
// If user_data is empty, no data is available to prune with.
rc = 0;
Expand Down

0 comments on commit 8234a69

Please sign in to comment.