@@ -2023,7 +2023,7 @@ void CFileSprayEx::readAndCheckSpraySourceReq(IEspContext& context, MemoryBuffer
20232023 {
20242024 // The sourceIPReq should must have been supplied here. This has been verified if
20252025 // the sourcePlaneReq is empty. When the sourcePlaneReq is not empty, the dropZone
2026- // should not be null. Otherwise, an exception should already be thrown.
2026+ // should not be null. Otherwise, an exception should already be thrown.
20272027 dropZone.setown (getAndValidateDropZone (nullptr , sourceIPReq));
20282028 if (dropZone)
20292029 sourcePlaneReq.append (dropZone->queryProp (" @name" ));
@@ -2876,6 +2876,8 @@ bool CFileSprayEx::onCopy(IEspContext &context, IEspCopy &req, IEspCopyResponse
28762876 mspec.setDefaultBaseDir (defaultFolder.str ());
28772877 mspec.setDefaultReplicateDir (defaultReplicateFolder.str ());
28782878 wuFSpecDest->setClusterPartDiskMapSpec (destNodeGroup.str (), mspec);
2879+ if (!req.getDestNumParts_isNull () && req.getDestNumParts () > 0 )
2880+ wuFSpecDest->setNumPartsOverride (req.getDestNumParts ());
28792881 }
28802882
28812883 resp.setResult (wu->queryId ());
@@ -3561,7 +3563,7 @@ bool CFileSprayEx::onDeleteDropZoneFiles(IEspContext &context, IEspDeleteDropZon
35613563 {
35623564 const char * file = files.item (idx);
35633565 if (containsRelPaths (file))
3564- throw makeStringExceptionV (ECLWATCH_INVALID_INPUT, " Invalid file %s" , file);
3566+ throw makeStringExceptionV (ECLWATCH_INVALID_INPUT, " Invalid file %s" , file);
35653567 }
35663568
35673569 StringBuffer path (directory);
0 commit comments