]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph_test_cls_refcount: fix cls_rgw.test_put_snap
authorSage Weil <sage@redhat.com>
Mon, 10 Apr 2017 18:57:49 +0000 (14:57 -0400)
committerSage Weil <sage@redhat.com>
Fri, 5 May 2017 17:39:13 +0000 (13:39 -0400)
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 <sage@redhat.com>
src/test/cls_refcount/test_cls_refcount.cc

index a585b9a9d12fae5a1262f92680739f650b267fad..3ac1cb892fbe7571068e767ec5cfcc58b354d793 100644 (file)
@@ -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));