]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test/objectstore: Fix DeferredReplayTest 58506/head
authorAdam Kupczyk <akupczyk@ibm.com>
Wed, 10 Jul 2024 08:19:21 +0000 (08:19 +0000)
committerAdam Kupczyk <akupczyk@ibm.com>
Wed, 10 Jul 2024 08:21:46 +0000 (08:21 +0000)
Created ch = CollectionHandle was not reset, causing valgrind & other
problems.

Signed-off-by: Adam Kupczyk <akupczyk@ibm.com>
src/test/objectstore/store_test.cc

index 426b8ef584fd290720d09bdaf5916c3ea9f6eee3..c14a5b02889ba14e0c55501dd6e33b5250ebc093 100644 (file)
@@ -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);