fix unix socket connection denied by ob_tcp_invited_node

This commit is contained in:
zhjc1124
2023-08-09 04:42:53 +00:00
committed by ob-robot
parent 7d8c1d5a7f
commit 581225e5a0
3 changed files with 4 additions and 2 deletions

View File

@ -275,7 +275,7 @@ int ObVariableSetExecutor::execute(ObExecContext &ctx, ObVariableSetStmt &stmt)
if (!addr.ip_to_string(buf, sizeof(buf))) {
ret = OB_ERR_UNEXPECTED;
LOG_WARN("format leader ip failed", K(ret), K(addr));
} else if (!(0 == client_ip.compare("unix:"))) {
} else if (!(0 == client_ip.compare(UNIX_SOCKET_CLIENT_IP))) {
ret = OB_NOT_SUPPORTED;
LOG_WARN("modify SECURE_FILE_PRIV not by unix socket connection", K(ret), K(client_ip));
LOG_USER_ERROR(OB_NOT_SUPPORTED, "modify SECURE_FILE_PRIV not by unix socket connection");