From: Igor Fedotov Date: Mon, 27 Jan 2025 10:45:16 +0000 (+0300) Subject: test/store_test: wait for collection removal before going forward with X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F62144%2Fhead;p=ceph.git test/store_test: wait for collection removal before going forward with the next stage in CompressionTest Signed-off-by: Igor Fedotov (cherry picked from commit 1c1acfad5dd8004231832b64fb0f3c25fa997a3d) --- diff --git a/src/test/objectstore/store_test.cc b/src/test/objectstore/store_test.cc index 3b31ac0b54a5..876dc3df7739 100644 --- a/src/test/objectstore/store_test.cc +++ b/src/test/objectstore/store_test.cc @@ -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(); } }