@@ -558,13 +558,6 @@ int ObConfigServerProcessor::get_idc_url(const char *rs_url_buf, const int64_t r
558558 K (idc_url_buf_len), K (ret));
559559 } else {
560560 const char *pos = strcasestr (rs_url_buf, RS_URL_KEY_STRING);
561- /*
562- * rs url
563- * http://x.x.x.x:xxxx/services?Action=ObRootServiceInfo&User_ID=xxx&UID=xxx&ObRegion=xxx
564- *
565- * idc url
566- * http://x.x.x.x:xxxx/services?Action=ObIDCRegionInfo&User_ID=xxx&UID=xxx&ObRegion=xxx
567- * */
568561 if (NULL != pos) {
569562 const int64_t url_head_len = static_cast <int64_t >(pos - rs_url_buf);
570563 const int64_t url_key_len = static_cast <int64_t >(strlen (RS_URL_KEY_STRING));
@@ -576,13 +569,6 @@ int ObConfigServerProcessor::get_idc_url(const char *rs_url_buf, const int64_t r
576569 url_tailer_len);
577570 idc_url_buf[url_head_len + IDC_URL_KEY_STRING.length () + url_tailer_len] = ' \0 ' ;
578571 } else {
579- /*
580- * rs url
581- * http://x.x.x.x:xxxx/oceanbase_obconfig/${cluster_name}
582- *
583- * idc url
584- * http://x.x.x.x:xxxx/oceanbase_obconfig/${cluster_name}
585- * */
586572 MEMCPY (idc_url_buf, rs_url_buf, rs_url_buf_len);
587573 MEMCPY (idc_url_buf + rs_url_buf_len,
588574 IDC_URL_TAILER_STRING.ptr (),
@@ -2218,10 +2204,6 @@ int ObConfigServerProcessor::concat_cluster_name_array(char *data, const char *c
22182204 ret = OB_INVALID_ARGUMENT;
22192205 LOG_WDIAG (" NULL pointer, invalid curl or url" , K (ret));
22202206 } else {
2221- /* 批量逻辑租户接口:
2222- curl --location --request GET 'http://127.0.0.1:8000/services?User_ID=alibaba&UID=HNBC&Action=LdgInstanceInfoBatchQuery' --header 'Content-Type: application/json' --data '{
2223- "LdgClusters": "cluster1,cluster2"}'
2224- */
22252207 char tail[] = " \" }" ;
22262208 int64_t len_data = strlen (data);
22272209 int64_t len_cluster_name = strlen (cluster_name_array);
0 commit comments