#2076 CheckMetricConfigAddress error message (#2077)

Signed-off-by: jinhai <hai.jin@zilliz.com>
pull/2082/head
Jin Hai 2020-04-25 10:04:04 +08:00 committed by GitHub
parent 723b10600b
commit 54c9386bdc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -9,6 +9,8 @@ Please mark all change in change log and use the issue from GitHub
- \#1929 Skip MySQL meta schema field width check - \#1929 Skip MySQL meta schema field width check
- \#2073 Fix CheckDBConfigBackendUrl error message - \#2073 Fix CheckDBConfigBackendUrl error message
- \#2076 CheckMetricConfigAddress error message
## Feature ## Feature
- \#1965 FAISS/NSG/HNSW/ANNOY use unified distance calculation algorithm - \#1965 FAISS/NSG/HNSW/ANNOY use unified distance calculation algorithm
- \#2064 Warn when use SQLite as metadata management - \#2064 Warn when use SQLite as metadata management

View File

@ -1093,7 +1093,7 @@ Status
Config::CheckMetricConfigAddress(const std::string& value) { Config::CheckMetricConfigAddress(const std::string& value) {
if (!ValidationUtil::ValidateIpAddress(value).ok()) { if (!ValidationUtil::ValidateIpAddress(value).ok()) {
std::string msg = "Invalid metric ip: " + value + ". Possible reason: metric_config.ip is invalid."; std::string msg = "Invalid metric ip: " + value + ". Possible reason: metric_config.ip is invalid.";
return Status(SERVER_INVALID_ARGUMENT, "Invalid metric config ip: " + value); return Status(SERVER_INVALID_ARGUMENT, msg);
} }
return Status::OK(); return Status::OK();
} }