From: Jane Zhu Date: Thu, 13 Nov 2025 15:59:58 +0000 (+0000) Subject: rgw: fix boost::intrusive::list iterator handling for erase X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F66235%2Fhead;p=ceph.git rgw: fix boost::intrusive::list iterator handling for erase Signed-off-by: Jane Zhu --- 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);