]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crimson/net: postpone the close() using yield() 47152/head
authorKefu Chai <tchaikov@gmail.com>
Mon, 18 Jul 2022 14:35:19 +0000 (22:35 +0800)
committerKefu Chai <tchaikov@gmail.com>
Mon, 18 Jul 2022 15:03:32 +0000 (23:03 +0800)
commitedbe8725fc79c29ead7c2717dc2db49f9de23cc2
treef4d688fb2eeb66e0685cdf56320215e802a194bb
parentf43c7a6e5f90a5fddf4ccd8cf1e9eebe59243546
crimson/net: postpone the close() using yield()

otherwise we'd erase an element in a container when we are still
iterating through it.

Fixes: https://tracker.ceph.com/issues/56589
Signed-off-by: Kefu Chai <tchaikov@gmail.com>
src/crimson/net/Protocol.h