Skip to content

Commit

Permalink
Merge pull request #17891 from jakesmith/HPCC-30473-preserve-superfil…
Browse files Browse the repository at this point in the history
…e-remote-meta

HPCC-30473 Preserve SuperFile remote storage details

Reviewed-by: Gavin Halliday <[email protected]>
Merged-by: Gavin Halliday <[email protected]>
  • Loading branch information
ghalliday authored Oct 12, 2023
2 parents b362a4d + 9679d63 commit ae61622
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions dali/base/dadfs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5873,6 +5873,13 @@ class CDistributedSuperFile: public CDistributedFileBase<IDistributedSuperFile>
const char *ecl = file.queryAttributes().queryProp("ECL");
if (!isEmptyString(ecl))
addPropIfCommon(*at, "ECL", ecl);
IPropertyTree *_remoteStoragePlane = file.queryAttributes().queryPropTree("_remoteStoragePlane");
if (_remoteStoragePlane)
{
// NB: CDistributedSuperFile sub-files in different environments are not permitted
if (!at->hasProp("_remoteStoragePlane"))
at->setPropTree("_remoteStoragePlane", LINK(_remoteStoragePlane));
}
}
unsigned np = file.numParts();
if (0 == width)
Expand Down

0 comments on commit ae61622

Please sign in to comment.