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: v13.0.2~605^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F19764%2Fhead;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 --- diff --git a/src/test/objectstore/store_test.cc b/src/test/objectstore/store_test.cc index fb07b6952741..5fa002a0c5b1 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);