From f6da1d1a524cb53bfc2f6c7585bee9e327476846 Mon Sep 17 00:00:00 2001 From: Jane Zhu Date: Thu, 13 Nov 2025 15:59:58 +0000 Subject: [PATCH] rgw: fix boost::intrusive::list iterator handling for erase Signed-off-by: Jane Zhu --- src/common/async/detail/co_throttle_impl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/async/detail/co_throttle_impl.h b/src/common/async/detail/co_throttle_impl.h index d281f6345bf..88e866a2b0b 100644 --- a/src/common/async/detail/co_throttle_impl.h +++ b/src/common/async/detail/co_throttle_impl.h @@ -194,7 +194,7 @@ class co_throttle_impl : to_cancel = std::move(outstanding); } - for (auto i = to_cancel.begin(); i != to_cancel.end(); ++i) { + for (auto i = to_cancel.begin(); i != to_cancel.end();) { child& c = *i; i = to_cancel.erase(i); -- 2.47.3