]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
neorados: Fix Neorados CephContext leak and prevent future ones
authorAdam C. Emerson <aemerson@redhat.com>
Fri, 21 Nov 2025 08:48:33 +0000 (03:48 -0500)
committerAdam C. Emerson <aemerson@redhat.com>
Fri, 21 Nov 2025 22:00:48 +0000 (17:00 -0500)
commite075bf36d8313d0053ba03e3630fc2fb7095b6a9
treebd5ad47a7ceb84d01b4d9cb9d5843e1a55122aba
parentd5770d56db3ca9ab059bd1bbd3028617ba7039cf
neorados: Fix Neorados CephContext leak and prevent future ones

The original fix just dropped the extraneous reference. Decided it was
better to make explicitly when a reference was being taken, so
`make_with_cct` no longer accepts `CephContext*` and instead requires
`boost::intrusive_ptr<CephContext>`.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
(cherry picked from commit 949e80d0a6e522322d0e00a65feb93f5e13c4655)
Resolves: rhbz#2412500
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
src/include/neorados/RADOS.hpp
src/neorados/RADOS.cc
src/rgw/rgw_sal.cc
src/test/neorados/list_pool.cc
src/test/neorados/start_stop.cc