From 2cc1e8a057fa45eb49b072a355afcd7a97bb262e Mon Sep 17 00:00:00 2001 From: Adam Kupczyk Date: Wed, 10 Jul 2024 08:19:21 +0000 Subject: [PATCH] test/objectstore: Fix DeferredReplayTest Created ch = CollectionHandle was not reset, causing valgrind & other problems. Signed-off-by: Adam Kupczyk --- src/test/objectstore/store_test.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/test/objectstore/store_test.cc b/src/test/objectstore/store_test.cc index 426b8ef584fd2..c14a5b02889ba 100644 --- a/src/test/objectstore/store_test.cc +++ b/src/test/objectstore/store_test.cc @@ -7262,6 +7262,7 @@ TEST_P(DeferredReplayTest, DeferredReplay) { // SetVal(g_conf(), "bluestore_debug_omit_kv_commit", "true"); g_conf().apply_changes(nullptr); + ch.reset(nullptr); store->umount(); SetVal(g_conf(), "bluestore_debug_omit_kv_commit", "false"); g_conf().apply_changes(nullptr); @@ -7346,6 +7347,7 @@ TEST_P(DeferredReplayTest, DeferredReplayInReadOnly) { // SetVal(g_conf(), "bluestore_debug_omit_kv_commit", "true"); g_conf().apply_changes(nullptr); + ch.reset(nullptr); store->umount(); SetVal(g_conf(), "bluestore_debug_omit_kv_commit", "false"); g_conf().apply_changes(nullptr); -- 2.39.5