From 8234a6920c66af80ebe094405bd3fbf24d08c304 Mon Sep 17 00:00:00 2001 From: Daniel Milroy Date: Tue, 5 Nov 2024 00:36:04 -0800 Subject: [PATCH] traverser: don't prune by subplan for leaf vertices --- resource/traversers/dfu_impl.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/resource/traversers/dfu_impl.cpp b/resource/traversers/dfu_impl.cpp index b6267e13c..68da9cec1 100644 --- a/resource/traversers/dfu_impl.cpp +++ b/resource/traversers/dfu_impl.cpp @@ -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;