From 723a12433aa7309e1eb0618be08d9b9fea389b81 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Wed, 25 Oct 2023 03:19:39 +0000 Subject: automatic import of iSulad --- ...5-Use-reference-in-loop-in-listpodsandbox.patch | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 0001-2155-Use-reference-in-loop-in-listpodsandbox.patch (limited to '0001-2155-Use-reference-in-loop-in-listpodsandbox.patch') diff --git a/0001-2155-Use-reference-in-loop-in-listpodsandbox.patch b/0001-2155-Use-reference-in-loop-in-listpodsandbox.patch new file mode 100644 index 0000000..4446798 --- /dev/null +++ b/0001-2155-Use-reference-in-loop-in-listpodsandbox.patch @@ -0,0 +1,26 @@ +From 8dacc4a2740ed3ba99fab88324c50fa37274297d Mon Sep 17 00:00:00 2001 +From: xuxuepeng +Date: Tue, 29 Aug 2023 11:50:52 +0000 +Subject: [PATCH 01/33] !2155 Use reference in loop in listpodsandbox * Use + reference in loop in listpodsandbox + +--- + src/daemon/entry/cri/v1/v1_cri_pod_sandbox_manager_service.cc | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/daemon/entry/cri/v1/v1_cri_pod_sandbox_manager_service.cc b/src/daemon/entry/cri/v1/v1_cri_pod_sandbox_manager_service.cc +index 33b700f3..687f4e6d 100644 +--- a/src/daemon/entry/cri/v1/v1_cri_pod_sandbox_manager_service.cc ++++ b/src/daemon/entry/cri/v1/v1_cri_pod_sandbox_manager_service.cc +@@ -739,7 +739,7 @@ void PodSandboxManagerService::ListPodSandbox(const runtime::v1::PodSandboxFilte + + sandbox::SandboxManager::GetInstance()->ListAllSandboxes(filter, sandboxes); + +- for (const auto sandbox : sandboxes) { ++ for (const auto &sandbox : sandboxes) { + std::unique_ptr pod(new runtime::v1::PodSandbox); + + pod->set_id(sandbox->GetId()); +-- +2.40.1 + -- cgit v1.2.3