From cc53ece29877a0490b19a5c7f904d73c2ffdab94 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 10 Apr 2017 14:57:49 -0400 Subject: [PATCH] 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 --- src/test/cls_refcount/test_cls_refcount.cc | 1 - 1 file changed, 1 deletion(-) 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)); -- 2.47.3