]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph_test_rados_api_tier: test undirty on non-existent object
authorSage Weil <sage@inktank.com>
Mon, 9 Dec 2013 17:48:35 +0000 (09:48 -0800)
committerSage Weil <sage@inktank.com>
Sat, 14 Dec 2013 00:35:57 +0000 (16:35 -0800)
Signed-off-by: Sage Weil <sage@inktank.com>
src/test/librados/tier.cc

index 98508eef7c2d7c34ad4e6632695733ff2f42da97..baabe99d96a6d3464f11b2266341768a68d80349 100644 (file)
@@ -36,6 +36,11 @@ TEST(LibRadosTier, Dirty) {
   IoCtx ioctx;
   ASSERT_EQ(0, cluster.ioctx_create(pool_name.c_str(), ioctx));
 
+  {
+    ObjectWriteOperation op;
+    op.undirty();
+    ASSERT_EQ(0, ioctx.operate("foo", &op)); // still get 0 if it dne
+  }
   {
     ObjectWriteOperation op;
     op.create(true);