From fb9faa65ae00591bc6f61f0c53542da25926c0d7 Mon Sep 17 00:00:00 2001 From: Shamser Ahmed Date: Mon, 13 Nov 2023 10:03:21 +0000 Subject: [PATCH] HPCC-30812 Fix bug in IoSkewRule of wu cost optimizer Signed-off-by: Shamser Ahmed --- common/wuanalysis/anarule.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/wuanalysis/anarule.cpp b/common/wuanalysis/anarule.cpp index 81d01da7b02..0191d17271c 100644 --- a/common/wuanalysis/anarule.cpp +++ b/common/wuanalysis/anarule.cpp @@ -151,13 +151,13 @@ class IoSkewRule : public AActivityRule { if (activity.getStatRaw(StSizeDiskWrite, StSkewMax)>options.queryOption(watOptSkewThreshold)) sizeSkew = true; - IWuEdge *wuEdge = activity.queryInput(0); + wuEdge = activity.queryInput(0); } else if ((stat == StTimeDiskReadIO) || (actkind==TAKspillread)) { if (activity.getStatRaw(StSizeDiskRead, StSkewMax)>options.queryOption(watOptSkewThreshold)) sizeSkew = true; - IWuEdge *wuEdge = activity.queryOutput(0); + wuEdge = activity.queryOutput(0); } if (wuEdge && wuEdge->getStatRaw(StNumRowsProcessed, StSkewMax)>options.queryOption(watOptSkewThreshold)) numRowsSkew = true;