[FEAT MERGE] merge the feature OBServer supports specified IP start to master

This commit is contained in:
obdev
2023-04-20 11:12:25 +00:00
committed by ob-robot
parent 0d67ab8f01
commit 0dbff9d9b9
13 changed files with 223 additions and 27 deletions

View File

@ -811,7 +811,7 @@ int ObIOCalibration::parse_calibration_table(ObIOAbility &io_ability)
sqlclient::ObMySQLResult *result = nullptr;
SMART_VAR(ObISQLClient::ReadResult, res) {
ObSqlString sql_string;
char ip_str[32] = { 0 };
char ip_str[INET6_ADDRSTRLEN] = { 0 };
const ObAddr &self_addr = OBSERVER.get_self();
if (OB_UNLIKELY(!self_addr.ip_to_string(ip_str, sizeof(ip_str)))) {
ret = OB_ERR_UNEXPECTED;