From f669fcdfd5e5facd1b702ed113cac6f1d56bef5b Mon Sep 17 00:00:00 2001 From: Igor Fedotov Date: Wed, 3 Jan 2018 16:48:51 +0300 Subject: [PATCH] objectstore/store_test: fix lack of flush prior to collection_empty() call Fixes: http://tracker.ceph.com/issues/22409 Signed-off-by: Igor Fedotov --- 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 fb07b695274..5fa002a0c5b 100644 --- a/src/test/objectstore/store_test.cc +++ b/src/test/objectstore/store_test.cc @@ -2388,6 +2388,7 @@ TEST_P(StoreTest, SimpleAttrTest) { r = apply_transaction(store, &osr, std::move(t)); ASSERT_EQ(r, 0); } + osr.flush(); { bool empty; int r = store->collection_empty(cid, &empty); @@ -2407,6 +2408,7 @@ TEST_P(StoreTest, SimpleAttrTest) { r = apply_transaction(store, &osr, std::move(t)); ASSERT_EQ(r, 0); } + osr.flush(); { bool empty; int r = store->collection_empty(cid, &empty);