From b7c3eaa981da31c82f5515739cbf13f697f23de9 Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Tue, 12 Apr 2022 16:15:10 +0200 Subject: [PATCH] api: admin/datastore: enable streaming for some api calls namely /admin/datastore/{store}/snapshots and /nodes/{node}/tasks since those are api calls where the result can get quite large with this change, the serialization is now streaming instead of making a `Value` in memory. Signed-off-by: Dominik Csapak Signed-off-by: Wolfgang Bumiller --- src/api2/admin/datastore.rs | 1 + src/api2/node/tasks.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/api2/admin/datastore.rs b/src/api2/admin/datastore.rs index 02d8939c..45a576ea 100644 --- a/src/api2/admin/datastore.rs +++ b/src/api2/admin/datastore.rs @@ -375,6 +375,7 @@ pub fn delete_snapshot( } #[api( + streaming: true, input: { properties: { store: { diff --git a/src/api2/node/tasks.rs b/src/api2/node/tasks.rs index 07353d0b..b8046f1b 100644 --- a/src/api2/node/tasks.rs +++ b/src/api2/node/tasks.rs @@ -380,6 +380,7 @@ fn stop_task( } #[api( + streaming: true, input: { properties: { node: {