1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00

MCOL-2181 MessageQueueClient :: setup (): unknown name or service

This commit is contained in:
jmrojas2332
2020-03-24 20:52:01 +00:00
parent fae9864a21
commit 37acb583cc

View File

@ -163,6 +163,11 @@ void MessageQueueClient::setup(bool syncProto)
otherEndIPStr = fConfig->getConfig(fOtherEnd, "IPAddr");
otherEndPortStr = fConfig->getConfig(fOtherEnd, "Port");
if (otherEndIPStr == "unassigned")
{
otherEndIPStr = "0.0.0.0";
}
if (otherEndIPStr.length() == 0) otherEndIPStr = "127.0.0.1";
if (otherEndPortStr.length() == 0 || static_cast<uint16_t>(strtol(otherEndPortStr.c_str(), 0, 0)) == 0)