]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
test/test_bluefs.cc: Fix valgrind reported memleaks
authorAdam Kupczyk <akupczyk@ibm.com>
Thu, 5 Jun 2025 19:31:56 +0000 (19:31 +0000)
committerAdam Kupczyk <akupczyk@ibm.com>
Fri, 6 Jun 2025 08:02:07 +0000 (08:02 +0000)
commit233ff38fd83290f988f4d8008efbbaae1df2bffa
tree53cd2fa879ea4db5a21a21b66ae074ce1c70fb9c
parent239dd0ee4e40ca0778a2799c5f30447510642167
test/test_bluefs.cc: Fix valgrind reported memleaks

1. Moved BlueFS::FileWriter iovs cleanup from _drain_writer to
   destructor
2. Add missing umount()s, close_writer()s, delete writers

Signed-off-by: Adam Kupczyk <akupczyk@ibm.com>
(cherry picked from commit 41c7e05be4eeacaaea87cab4addef7535f6bbcb7)
src/os/bluestore/BlueFS.cc
src/os/bluestore/BlueFS.h
src/test/objectstore/test_bluefs.cc