1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-11-05 04:50:35 +03:00

Tentative fix for the getsystemnetworkconfig cmd re mcol-1607.

This commit is contained in:
Patrick LeBlanc
2019-03-04 10:35:59 -06:00
parent e849af0ce6
commit c716b2afbf

View File

@@ -5404,7 +5404,14 @@ int processCommand(string* arguments)
for ( ; pt1 != (*pt).hostConfigList.end() ; pt1++) for ( ; pt1 != (*pt).hostConfigList.end() ; pt1++)
{ {
string ipAddr = (*pt1).IPAddr; /* MCOL-1607. IPAddr may be a host name here b/c it is read straight
from the config file. */
string tmphost = oam.getIPAddress(pt1->IPAddr);
string ipAddr;
if (tmphost.empty())
ipAddr = pt1->IPAddr;
else
ipAddr = tmphost;
string hostname = (*pt1).HostName; string hostname = (*pt1).HostName;
string nicID = oam.itoa((*pt1).NicID); string nicID = oam.itoa((*pt1).NicID);