]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
objectstore/store_test: fix lack of flush prior to collection_empty() call 19967/head
authorIgor Fedotov <ifedotov@suse.com>
Wed, 3 Jan 2018 13:48:51 +0000 (16:48 +0300)
committerNathan Cutler <ncutler@suse.com>
Tue, 16 Jan 2018 13:33:29 +0000 (14:33 +0100)
Fixes: http://tracker.ceph.com/issues/22409
Signed-off-by: Igor Fedotov <ifedotov@suse.com>
(cherry picked from commit f669fcdfd5e5facd1b702ed113cac6f1d56bef5b)

src/test/objectstore/store_test.cc

index aa59522407b0235046563b0af339204be11cc4fa..06770962ee8a0fb7e3a6f6c4822ff4ad8e10493a 100644 (file)
@@ -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);