From 44643cae8da8068c3b9ab086b9dfc367f653e043 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 (cherry picked from commit f669fcdfd5e5facd1b702ed113cac6f1d56bef5b) --- 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 aa59522407b0..06770962ee8a 100644 --- a/src/test/objectstore/store_test.cc +++ b/src/test/objectstore/store_test.cc @@ -2306,6 +2306,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); @@ -2325,6 +2326,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); -- 2.47.3