]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
objectstore/store_test: fix lack of flush prior to collection_empty() call
authorIgor Fedotov <ifedotov@suse.com>
Wed, 3 Jan 2018 13:48:51 +0000 (16:48 +0300)
committerIgor Fedotov <ifedotov@suse.com>
Mon, 8 Jan 2018 17:30:18 +0000 (20:30 +0300)
Fixes: http://tracker.ceph.com/issues/22409
Signed-off-by: Igor Fedotov <ifedotov@suse.com>
src/test/objectstore/store_test.cc

index fb07b6952741ef57af6a851be613cbff7335d51f..5fa002a0c5b126e9d84e2d9f96910a862b4fc0d0 100644 (file)
@@ -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);