]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test/store_test: wait for collection removal before going forward with 62144/head 62145/head
authorIgor Fedotov <ifedotov@croit.io>
Mon, 27 Jan 2025 10:45:16 +0000 (13:45 +0300)
committerIgor Fedotov <igor.fedotov@croit.io>
Wed, 5 Mar 2025 18:29:03 +0000 (21:29 +0300)
the next stage in CompressionTest

Signed-off-by: Igor Fedotov <igor.fedotov@croit.io>
(cherry picked from commit 1c1acfad5dd8004231832b64fb0f3c25fa997a3d)

src/test/objectstore/store_test.cc

index 3b31ac0b54a5cc9b26f4745d4cf5d0f870a836c8..876dc3df7739709e43c3fa7a8e4099b5393a614a 100644 (file)
@@ -1253,12 +1253,15 @@ void StoreTest::doCompressionTest()
   EXPECT_EQ(store->mount(), 0);
   ch = store->open_collection(cid);
   {
+    C_SaferCond c;
     ObjectStore::Transaction t;
     t.remove(cid, hoid);
     t.remove_collection(cid);
     cerr << "Cleaning" << std::endl;
+    t.register_on_commit(&c);
     r = queue_transaction(store, ch, std::move(t));
     ASSERT_EQ(r, 0);
+      c.wait();
   }
 }