]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
posixdriver: properly destruct BucketCacheEntry objects
authorMatt Benjamin <mbenjamin@redhat.com>
Wed, 26 Nov 2025 14:00:03 +0000 (09:00 -0500)
committerDaniel Gryniewicz <dang@fprintf.net>
Fri, 29 May 2026 15:03:30 +0000 (11:03 -0400)
commit2476f77ac8935816df2a877b57310e1ba8aad115
tree4089e736971c81c302b639fe7854b0dfac69d4b4
parente6ae0fdc59f8e578fa9ea9339db1512009a49456
posixdriver:  properly destruct BucketCacheEntry objects

* avoids leak of database handles during eviction

Also adds missing return-ref in invalidate_entry--this would
leak a cache entry.

With this change, we can now tolerate indefinite s3-test runs
wit rgw_posix_cache_max_buckets=100.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/rgw/driver/posix/bucket_cache.h
src/rgw/driver/posix/rgw_sal_posix.cc