Skip to content

Commit

Permalink
HPCC-29521 Fix despray wrap=1 regression (introduced by HPCC-29474)
Browse files Browse the repository at this point in the history
Signed-off-by: Jake Smith <[email protected]>
  • Loading branch information
jakesmith authored and ghalliday committed May 12, 2023
1 parent bdcfef1 commit 8f87261
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dali/dfu/dfurun.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1309,6 +1309,7 @@ class CDFUengine: public CInterface, implements IDFUengine
case DFUcmd_move:
case DFUcmd_import:
case DFUcmd_add:
case DFUcmd_export:
{
// keys default wrap for copy
if (destination->getWrap()||(iskey&&(cmd==DFUcmd_copy)))
Expand All @@ -1324,6 +1325,8 @@ class CDFUengine: public CInterface, implements IDFUengine
destination->setNumPartsOverride(plane->getPropInt("@defaultSprayParts"));
}
}
if (DFUcmd_export == cmd)
break; // the rest applies to creating a target logical file only

destination->getLogicalName(tmp.clear());
if (tmp.length())
Expand All @@ -1334,7 +1337,7 @@ class CDFUengine: public CInterface, implements IDFUengine
tmp.clear().append(tmpdlfn.get());
bool iswin;
if (!destination->getWindowsOS(iswin)) // would normally know!
{
{
// set default OS to cluster 0
Owned<IGroup> grp=destination->getGroup(0);
if (grp.get())
Expand Down

0 comments on commit 8f87261

Please sign in to comment.