Browse Source

Merge pull request #12215 from jakesmith/hpcc-21510

HPCC-21510 Supply correct default directory from esp rename context

Reviewed-By: James McMullan <james.mcmullan@lexisnexis.com>
Reviewed-By: Kevin Wang <kevin.wang@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 6 years ago
parent
commit
1777e663be
1 changed files with 1 additions and 1 deletions
  1. 1 1
      esp/services/ws_dfu/ws_dfuService.cpp

+ 1 - 1
esp/services/ws_dfu/ws_dfuService.cpp

@@ -6426,7 +6426,7 @@ bool CWsDfuEx::onDFUFilePublish(IEspContext &context, IEspDFUFilePublishRequest
         Owned<IDistributedFile> oldFile = queryDistributedFileDirectory().createNew(fileDesc);
         Owned<IDistributedFile> oldFile = queryDistributedFileDirectory().createNew(fileDesc);
         oldFile->validate();
         oldFile->validate();
 
 
-        if (!oldFile->renamePhysicalPartFiles(newFileName.str(), nullptr, nullptr, nullptr))
+        if (!oldFile->renamePhysicalPartFiles(newFileName.str(), nullptr, nullptr, fileDesc->queryDefaultDir()))
             throw MakeStringException(ECLWATCH_FILE_NOT_EXIST, "Failed in renamePhysicalPartFiles %s.", newFileName.str());
             throw MakeStringException(ECLWATCH_FILE_NOT_EXIST, "Failed in renamePhysicalPartFiles %s.", newFileName.str());
 
 
         Owned<IFileDescriptor> newFileDesc = createFileDescriptor(newFileName, clusterTypeEx, groupName, group);
         Owned<IFileDescriptor> newFileDesc = createFileDescriptor(newFileName, clusterTypeEx, groupName, group);