Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/candidate-9.0.x' into candidate-…
Browse files Browse the repository at this point in the history
…9.2.x

Signed-off-by: Jake Smith <[email protected]>
  • Loading branch information
jakesmith committed Aug 3, 2023
2 parents 4a55227 + d4a1f70 commit e9ffe1b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion common/thorhelper/thorsoapcall.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2321,7 +2321,7 @@ class CWSCAsyncFor : implements IWSCAsyncFor, public CInterface, public CAsyncFo
{
isReused = false;
keepAlive = true;
socket.setown(blacklist->connect(connUrl.port, connUrl.host, master->logctx, (unsigned)master->maxRetries, master->timeoutMS, master->roxieAbortMonitor, master->rowProvider));
socket.setown(blacklist->connect(ep, master->logctx, (unsigned)master->maxRetries, master->timeoutMS, master->roxieAbortMonitor, master->rowProvider));
if (proto == PersistentProtocol::ProtoTLS)
{
#ifdef _USE_OPENSSL
Expand Down
1 change: 1 addition & 0 deletions dali/base/dautils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,7 @@ interface ILocalOrDistributedFile: extends IInterface
virtual bool getPartCrc(unsigned partnum, unsigned &crc) = 0;
virtual bool exists() const = 0; // if created for writing, this may be false
virtual bool isExternal() const = 0;
virtual bool isExternalFile() const = 0;
};

typedef __int64 ConnectionId;
Expand Down
4 changes: 2 additions & 2 deletions ecl/hthor/hthor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ void CHThorDiskWriteActivity::resolve()
else
throw MakeStringException(99, "Cannot write %s, file already exists (missing OVERWRITE attribute?)", lfn.str());
}
else if (f->exists() || f->isExternal() || agent.queryResolveFilesLocally())
else if (f->exists() || f->isExternalFile() || agent.queryResolveFilesLocally())
{
// special/local/external file
if (f->numParts()!=1)
Expand Down Expand Up @@ -8379,7 +8379,7 @@ void CHThorDiskReadBaseActivity::resolve()
Owned<IFileDescriptor> fdesc;
fdesc.setown(ldFile->getFileDescriptor());
gatherInfo(fdesc);
if (ldFile->isExternal())
if (ldFile->isExternalFile())
compressed = checkWriteIsCompressed(helper.getFlags(), fixedDiskRecordSize, false);//grouped=FALSE because fixedDiskRecordSize already includes grouped
IDistributedFile *dFile = ldFile->queryDistributedFile();
if (dFile) //only makes sense for distributed (non local) files
Expand Down
7 changes: 6 additions & 1 deletion esp/clients/ws_dfsclient/ws_dfsclient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,7 @@ class CLocalOrDistributedFile: implements ILocalOrDistributedFile, public CInter
}
if (!onlylocal)
{
if (lfn.isExternal() && !lfn.isRemote())
if (lfn.isExternalFile() || lfn.isExternalPlane())
{
Owned<IFileDescriptor> fDesc = createExternalFileDescriptor(lfn.get());
dfile.setown(queryDistributedFileDirectory().createExternal(fDesc, lfn.get()));
Expand Down Expand Up @@ -1126,6 +1126,11 @@ class CLocalOrDistributedFile: implements ILocalOrDistributedFile, public CInter
{
return lfn.isExternal();
}

virtual bool isExternalFile() const override
{
return lfn.isExternalFile() || lfn.isExternalPlane();
}
};


Expand Down

0 comments on commit e9ffe1b

Please sign in to comment.