Skip to content

Commit

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

Signed-off-by: Gordon Smith <[email protected]>
  • Loading branch information
GordonSmith committed Sep 22, 2023
2 parents d7e2578 + 85f7c98 commit bcd5763
Show file tree
Hide file tree
Showing 221 changed files with 4,335 additions and 1,805 deletions.
2 changes: 1 addition & 1 deletion common/dllserver/dllserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ void DllServer::doRegisterDll(const char * name, const char * kind, const char *
RemoteFilename dllRemote;
StringBuffer ipText, dllText;
dllRemote.setRemotePath(dllPath);
dllRemote.queryIP().getIpText(ipText);
dllRemote.queryIP().getHostText(ipText);
dllRemote.getLocalPath(dllText);

Owned<IRemoteConnection> conn = getEntryConnection(name, RTM_LOCK_WRITE);
Expand Down
8 changes: 4 additions & 4 deletions common/environment/dalienv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ EnvMachineOS queryOS(const IpAddress & ip)
Owned<IEnvironmentFactory> factory = getEnvironmentFactory(true);
Owned<IConstEnvironment> env = factory->openEnvironment();
StringBuffer ipText;
ip.getIpText(ipText);
ip.getHostText(ipText);
Owned<IConstMachineInfo> machine = env->getMachineByAddress(ipText.str());
if (machine)
ret = machine->getOS();
Expand Down Expand Up @@ -226,7 +226,7 @@ const char * querySlaveExecutable(const char * keyName, const char * exeName, co
Owned<IEnvironmentFactory> factory = getEnvironmentFactory(true);
Owned<IConstEnvironment> env = factory->openEnvironment();
StringBuffer addr;
ip.getIpText(addr);
ip.getHostText(addr);

StringBufferAdaptor spp(progpath);
StringBufferAdaptor swd(workdir);
Expand Down Expand Up @@ -264,10 +264,10 @@ bool getRemoteRunInfo(const char * keyName, const char * exeName, const char * v
// use dafilesrv to work out OS
StringBuffer dalis;
if (remotedali)
remotedali->endpoint().getUrlStr(dalis);
remotedali->endpoint().getEndpointHostText(dalis);
// first get machine by IP
StringBuffer ips;
ip.getIpText(ips);
ip.getHostText(ips);

//Cannot use getEnvironmentFactory() since it is using a remotedali
StringBuffer xpath;
Expand Down
2 changes: 1 addition & 1 deletion common/environment/environment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1972,7 +1972,7 @@ IConstDropZoneInfo * CLocalEnvironment::getDropZoneByAddressPath(const char * ne

#ifdef _DEBUG
StringBuffer serverIpString;
serverIP.getIpText(serverIpString);
serverIP.getHostText(serverIpString);
LOG(MCdebugInfo, unknownJob, "Listed server: '%s', IP: '%s'", dropzoneServer.str(), serverIpString.str());
#endif
if (strisame(netaddress, dropzoneServer) || targetIp.ipequals(serverIP))
Expand Down
6 changes: 3 additions & 3 deletions common/pkgfiles/referencedfilelist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ IPropertyTree *ReferencedFile::getSpecifiedOrRemoteFileTree(IUserDescriptor *use
if (!fileTree)
return NULL;
StringAttrBuilder daliipText(daliip);
remote->endpoint().getUrlStr(daliipText);
remote->endpoint().getEndpointHostText(daliipText);
filePrefix.set(remotePrefix);
return fileTree.getClear();
}
Expand Down Expand Up @@ -471,7 +471,7 @@ void ReferencedFile::resolveRemote(IUserDescriptor *user, INode *remote, const c
flags |= RefFileNotFound;

StringBuffer dest;
DBGLOG("Remote ReferencedFile not found %s [dali=%s, remote=%s, prefix=%s]", logicalName.str(), daliip.get(), remote ? remote->endpoint().getUrlStr(dest).str() : nullptr, remotePrefix);
DBGLOG("Remote ReferencedFile not found %s [dali=%s, remote=%s, prefix=%s]", logicalName.str(), daliip.get(), remote ? remote->endpoint().getEndpointHostText(dest).str() : nullptr, remotePrefix);
}

void ReferencedFile::resolve(const StringArray &locations, const char *srcCluster, IUserDescriptor *user, INode *remote, const char *remotePrefix, bool checkLocalFirst, StringArray *subfiles, bool _trackSubFiles, bool resolveForeign)
Expand Down Expand Up @@ -1025,7 +1025,7 @@ void ReferencedFileList::cloneRelationships()
return;

StringBuffer addr;
remote->endpoint().getUrlStr(addr);
remote->endpoint().getEndpointHostText(addr);
IDistributedFileDirectory &dir = queryDistributedFileDirectory();
ReferencedFileIterator files(this);
ForEach(files)
Expand Down
8 changes: 4 additions & 4 deletions common/remote/rmtspawn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ ISocket *spawnRemoteChild(SpawnKind kind, const char * exe, const SocketEndpoint
unsigned port = SLAVE_CONNECT_PORT + ((unsigned)kind * NUM_SLAVE_CONNECT_PORT) + getRandom() % NUM_SLAVE_CONNECT_PORT;
StringBuffer args;

myEP.getUrlStr(args);
myEP.getEndpointHostText(args);
args.append(' ').append(replyTag).append(' ').append((unsigned)kind).append(" ").append(port);
if (extra)
args.append(' ').append(extra);
Expand Down Expand Up @@ -177,7 +177,7 @@ ISocket *spawnRemoteChild(SpawnKind kind, const char * exe, const SocketEndpoint
try
{
StringBuffer tmp;
connectEP.getUrlStr(tmp);
connectEP.getEndpointHostText(tmp);
LOG(MCdetailDebugInfo, unknownJob, "Try to connect to slave %s",tmp.str());
Owned<ISocket> socket = ISocket::connect_wait(connectEP,MASTER_CONNECT_SLAVE_TIMEOUT);
if (socket)
Expand Down Expand Up @@ -288,7 +288,7 @@ bool CRemoteParentInfo::processCommandLine(int argc, const char * * argv, String
void CRemoteParentInfo::log()
{
StringBuffer temp;
LOG(MCdebugProgress, unknownJob, "Starting remote slave. Master=%s reply=%d port=%d", parent.getUrlStr(temp).str(), replyTag, port);
LOG(MCdebugProgress, unknownJob, "Starting remote slave. Master=%s reply=%d port=%d", parent.getEndpointHostText(temp).str(), replyTag, port);
}

bool CRemoteParentInfo::sendReply(unsigned version)
Expand Down Expand Up @@ -331,7 +331,7 @@ bool CRemoteParentInfo::sendReply(unsigned version)
if (version == connectVersion)
{
buffer.read(connectTag);
masterIP.getIpText(masterIPtext.clear());
masterIP.getHostText(masterIPtext.clear());

LOG(MCdetailDebugInfo, unknownJob, "Process incoming connection. reply=%d got(%d,%s)", replyTag,connectTag,masterIPtext.str());

Expand Down
4 changes: 2 additions & 2 deletions common/remote/rmtssh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ class CFRunSSH: public CInterface, implements IFRunSSH
if (sa.ordinality()) {
StringBuffer ns;
ForEachItemIn(i,sa) {
sa.item(i).getIpText(ns.clear());
sa.item(i).getHostText(ns.clear());
slaves.append(ns.str());
}
return;
Expand Down Expand Up @@ -548,7 +548,7 @@ class CFRunSSH: public CInterface, implements IFRunSSH
strict = false;
verbose = false;
StringBuffer ips;
ip.getIpText(ips);
ip.getHostText(ips);
slaves.kill();
slaves.append(ips.str());
numthreads = 1;
Expand Down
2 changes: 1 addition & 1 deletion common/roxiecommlib/roxiecommunicationclient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ class CRoxieCommunicationClient: implements IRoxieCommunicationClient, public CI
if (remoteIP)
buf.append(remoteIP);
else
ep.getUrlStr(buf);
ep.getEndpointHostText(buf);

throw MakeStringException(ROXIECOMM_SOCKET_ERROR, "%s", buf.str());
}
Expand Down
8 changes: 4 additions & 4 deletions common/thorhelper/persistent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class CPersistentInfo : implements IInterface, public CInterface
{
if(_ep)
{
_ep->getUrlStr(epstr);
_ep->getEndpointHostText(epstr);
keystr.set(epstr);
addKeySuffix(proto, keystr);
}
Expand Down Expand Up @@ -121,7 +121,7 @@ class CAvailKeeper
private:
inline StringBuffer& calcKey(SocketEndpoint& ep, PersistentProtocol proto, StringBuffer& keystr)
{
ep.getUrlStr(keystr);
ep.getEndpointHostText(keystr);
return addKeySuffix(proto, keystr);
}
SocketSet* findSet(CPersistentInfo* info, bool create = false)
Expand Down Expand Up @@ -214,7 +214,7 @@ class CPersistentHandler : implements IPersistentHandler, implements ISocketSele
if (m_enableDoNotReuseList && ep != nullptr)
{
StringBuffer epstr;
ep->getUrlStr(epstr);
ep->getEndpointHostText(epstr);
if(m_doNotReuseList.getValue(epstr.str()) != nullptr)
{
PERSILOG(PersistentLogLevel::PLogNormal, "PERSISTENT: socket %d's target endpoint %s is in DoNotReuseList, will not add it.", sock->OShandle(), epstr.str());
Expand Down Expand Up @@ -434,7 +434,7 @@ class CPersistentHandler : implements IPersistentHandler, implements ISocketSele
if(!ep)
return false;
StringBuffer epstr;
ep->getUrlStr(epstr);
ep->getEndpointHostText(epstr);
if(epstr.length()> 0 && m_doNotReuseList.getValue(epstr.str()) != nullptr)
return true;
return false;
Expand Down
Loading

0 comments on commit bcd5763

Please sign in to comment.