]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph_test_objectstore: fix omap test cleanup
authorSage Weil <sage@redhat.com>
Thu, 16 Apr 2015 00:10:48 +0000 (17:10 -0700)
committerSage Weil <sage@redhat.com>
Tue, 1 Sep 2015 17:39:38 +0000 (13:39 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
src/test/objectstore/store_test.cc

index aa20a87be387092015096f29df7f1350418cf453..5f056dcfc2b2ef522b2e8b18d68419935994cebc 100644 (file)
@@ -2103,6 +2103,14 @@ TEST_P(StoreTest, OMapIterator) {
     std::cout << "upper bound, bound key is " << bound_key << " >= iter key is " << iter->key() << std::endl;
   }
   ASSERT_EQ(correct, true);
+
+  {
+    ObjectStore::Transaction t;
+    t.remove(cid, hoid);
+    t.remove_collection(cid);
+    r = store->apply_transaction(t);
+    ASSERT_EQ(r, 0);
+  }
 }
 
 TEST_P(StoreTest, XattrTest) {