summaryrefslogtreecommitdiff
path: root/0001-2155-Use-reference-in-loop-in-listpodsandbox.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-10-16 08:21:17 +0000
committerCoprDistGit <infra@openeuler.org>2023-10-16 08:21:17 +0000
commit5a30c52fd5f03e11a1e7a998731c59a31477eba9 (patch)
tree6e73a07585bfafeae4404d2247436ed13d337457 /0001-2155-Use-reference-in-loop-in-listpodsandbox.patch
parentbe5fbac390ac42956df062b5585d96b3ae5db1df (diff)
automatic import of iSuladopeneuler23.09
Diffstat (limited to '0001-2155-Use-reference-in-loop-in-listpodsandbox.patch')
-rw-r--r--0001-2155-Use-reference-in-loop-in-listpodsandbox.patch26
1 files changed, 26 insertions, 0 deletions
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 <xuxuepeng1@huawei.com>
+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<runtime::v1::PodSandbox> pod(new runtime::v1::PodSandbox);
+
+ pod->set_id(sandbox->GetId());
+--
+2.40.1
+