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

Signed-off-by: Igor Fedotov <igor.fedotov@croit.io>
src/test/objectstore/store_test.cc

index 9c8368cbcc430b8ca3f9fe7b853c4d22717408c6..25128a41d9563be311e597f2656879360b4f08a4 100644 (file)
@@ -1351,12 +1351,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();
   }
 }