From: Sage Weil Date: Mon, 10 Apr 2017 18:57:49 +0000 (-0400) Subject: ceph_test_cls_refcount: fix cls_rgw.test_put_snap X-Git-Tag: v12.0.3~28^2~15 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=cc53ece29877a0490b19a5c7f904d73c2ffdab94;p=ceph.git ceph_test_cls_refcount: fix cls_rgw.test_put_snap Do not touch the object before the put if we expect to see ENOENT. We would get it anyway with older code, but with the snapset changes we are on a whiteout and get ENODATA instead. And really we shouldn't have been getting ENOENT after a touch anyway! Signed-off-by: Sage Weil --- diff --git a/src/test/cls_refcount/test_cls_refcount.cc b/src/test/cls_refcount/test_cls_refcount.cc index a585b9a9d12f..3ac1cb892fbe 100644 --- a/src/test/cls_refcount/test_cls_refcount.cc +++ b/src/test/cls_refcount/test_cls_refcount.cc @@ -133,7 +133,6 @@ TEST(cls_rgw, test_put_snap) { ASSERT_EQ(0, ioctx.snap_create("snapbar")); librados::ObjectWriteOperation *op = new_op(); - op->create(false); cls_refcount_put(*op, "notag", true); ASSERT_EQ(-ENOENT, ioctx.operate("foo", op));