Skip to content

Commit

Permalink
HPCC-32237 Fix getPlaneAttributeValue default value bug
Browse files Browse the repository at this point in the history
Signed-off-by: Jake Smith <[email protected]>
  • Loading branch information
jakesmith committed Jul 12, 2024
1 parent 23aa7a9 commit 756ecdc
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions system/jlib/jfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7961,9 +7961,12 @@ unsigned __int64 getPlaneAttributeValue(const char *planeName, PlaneAttributeTyp
CriticalBlock b(planeAttriubuteMapCrit);
auto it = planeAttributesMap.find(planeName);
if (it != planeAttributesMap.end())
return it->second[planeAttrType];
else
return defaultValue;
{
unsigned v = it->second[planeAttrType];
if (v) // a plane attribute value of 0 is considered as not set
return v;
}
return defaultValue;
}

size32_t getBlockedFileIOSize(const char *planeName, size32_t defaultSize)
Expand Down

0 comments on commit 756ecdc

Please sign in to comment.