]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw: fix boost::intrusive::list iterator handling for erase
authorJane Zhu <jzhu116@bloomberg.net>
Thu, 13 Nov 2025 15:59:58 +0000 (15:59 +0000)
committerJane Zhu <jzhu116@bloomberg.net>
Thu, 13 Nov 2025 15:59:58 +0000 (15:59 +0000)
Signed-off-by: Jane Zhu <jzhu116@bloomberg.net>
src/common/async/detail/co_throttle_impl.h

index d281f6345bfc2b743133977ddf8ac0d7cf505fee..88e866a2b0b384a5a3cf14c11c599f237477111b 100644 (file)
@@ -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);