This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch branch-4.1
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-4.1 by this push:
     new aee9b0b60e2 branch-4.1: [chore](cloud) list_snapshot allow query 
parameter #61885 (#62012)
aee9b0b60e2 is described below

commit aee9b0b60e21c2b1c833f37c240092c3037dc195
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Thu Apr 2 18:04:20 2026 +0800

    branch-4.1: [chore](cloud) list_snapshot allow query parameter #61885 
(#62012)
    
    Cherry-picked from #61885
    
    Co-authored-by: walter <[email protected]>
---
 cloud/src/meta-service/meta_service_http.cpp | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/cloud/src/meta-service/meta_service_http.cpp 
b/cloud/src/meta-service/meta_service_http.cpp
index c3ecff50a9a..888a5b7a731 100644
--- a/cloud/src/meta-service/meta_service_http.cpp
+++ b/cloud/src/meta-service/meta_service_http.cpp
@@ -728,7 +728,14 @@ static HttpResponse process_unknown(MetaServiceImpl*, 
brpc::Controller*) {
 
 static HttpResponse process_list_snapshot(MetaServiceImpl* service, 
brpc::Controller* ctrl) {
     ListSnapshotRequest req;
-    PARSE_MESSAGE_OR_RETURN(ctrl, req);
+    auto& uri = ctrl->http_request().uri();
+    std::string instance_id(http_query(uri, "instance_id"));
+    if (instance_id.empty()) {
+        PARSE_MESSAGE_OR_RETURN(ctrl, req);
+    } else {
+        req.set_instance_id(instance_id);
+    }
+
     ListSnapshotResponse resp;
     service->list_snapshot(ctrl, &req, &resp, nullptr);
     return http_json_reply_message(resp.status(), resp);


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to