Bläddra i källkod

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 år sedan
förälder
incheckning
1777e663be
1 ändrade filer med 1 tillägg och 1 borttagningar
  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);
         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());
 
         Owned<IFileDescriptor> newFileDesc = createFileDescriptor(newFileName, clusterTypeEx, groupName, group);