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>
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));