]> 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 16:05:12 +0000 (12:05 -0400)
commit217285fa65fd8cc94bef9279feb8e1bf57235297
treec84a12ea96f9484fad6da32b3ba6f8262c0f4d8a
parent0275fda98dead8dceab951b671336517f6ca80bf
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