]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
tools/immutable_object_cache: don't leak in-flight replies on teardown 69623/head
authorSun Yuechi <sunyuechi@iscas.ac.cn>
Sun, 21 Jun 2026 08:42:54 +0000 (16:42 +0800)
committerSun Yuechi <sunyuechi@iscas.ac.cn>
Sun, 5 Jul 2026 11:34:45 +0000 (04:34 -0700)
commit2d85d9e15855e662a4235c38c683a533213be934
tree9282b49ffbb13663d5048fda3907f41c39a3f4bb
parent746019c6edd37baccf1de763023ab99e8659a2ea
tools/immutable_object_cache: don't leak in-flight replies on teardown

CacheSession::send() deleted the reply in the async_write completion
handler. On teardown asio drops the pending handler without running it,
leaking the reply. Delete it right after encoding into bl instead; bl
owns the payload, so the write is unaffected.

Fixes: https://tracker.ceph.com/issues/77552
Signed-off-by: Sun Yuechi <sunyuechi@iscas.ac.cn>
src/tools/immutable_object_cache/CacheSession.cc