Skip to content

Commit 4826162

Browse files
committed
2
1 parent f9faad1 commit 4826162

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

cloud/src/meta-service/meta_service_http.cpp

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -693,14 +693,7 @@ static HttpResponse process_set_multi_version_status(MetaServiceImpl* service,
693693

694694
// Prefer instance_id if provided, fallback to cloud_unique_id
695695
if (instance_id.empty()) {
696-
if (cloud_unique_id.empty()) {
697-
return http_json_reply(MetaServiceCode::INVALID_ARGUMENT,
698-
"either instance_id or cloud_unique_id must be provided");
699-
}
700-
instance_id = get_instance_id(service->resource_mgr(), cloud_unique_id);
701-
if (instance_id.empty()) {
702-
return http_json_reply(MetaServiceCode::INVALID_ARGUMENT, "invalid cloud_unique_id");
703-
}
696+
return http_json_reply(MetaServiceCode::INVALID_ARGUMENT, "empty instance id");
704697
}
705698

706699
if (multi_version_status_str.empty()) {

0 commit comments

Comments
 (0)