Skip to content

Commit

Permalink
HPCC-23894 Core looking up subfile info where not present
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Chapman <[email protected]>
  • Loading branch information
richardkchapman committed Apr 23, 2020
1 parent daa0afb commit 0936a70
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dali/base/dadfs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5118,7 +5118,6 @@ class CDistributedSuperFile: public CDistributedFileBase<IDistributedSuperFile>
subfile.setown(transaction?transaction->lookupFile(subname.str(),timeout):parent->lookup(subname.str(), udesc, false, false, false, transaction, defaultPrivilegedUser, timeout));
if (!subfile.get())
subfile.setown(transaction?transaction->lookupSuperFile(subname.str(),timeout):parent->lookupSuperFile(subname.str(),udesc,transaction,timeout));
containsRestrictedSubfile = containsRestrictedSubfile || subfile->isRestrictedAccess();
// Some files are ok not to exist
if (!subfile.get())
{
Expand All @@ -5140,6 +5139,8 @@ class CDistributedSuperFile: public CDistributedFileBase<IDistributedSuperFile>
else
ThrowStringException(-1, "CDistributedSuperFile: SuperFile %s: corrupt subfile file '%s' cannot be found", logicalName.get(), subname.str());
}
if (subfile.get())
containsRestrictedSubfile = containsRestrictedSubfile || subfile->isRestrictedAccess();
subfiles.append(*subfile.getClear());
if (link)
linkSubFile(f);
Expand Down

0 comments on commit 0936a70

Please sign in to comment.