From: Igor Fedotov Date: Wed, 3 Jan 2018 13:48:51 +0000 (+0300) Subject: objectstore/store_test: fix lack of flush prior to collection_empty() call X-Git-Tag: v12.2.3~33^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=44643cae8da8068c3b9ab086b9dfc367f653e043;p=ceph.git 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) --- diff --git a/src/test/objectstore/store_test.cc b/src/test/objectstore/store_test.cc index aa59522407b..06770962ee8 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);