]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: make rollback refcount tag match 30891/head
authorJ. Eric Ivancich <ivancich@redhat.com>
Thu, 29 Aug 2019 14:41:53 +0000 (10:41 -0400)
committerNathan Cutler <ncutler@suse.com>
Mon, 14 Oct 2019 11:37:08 +0000 (13:37 +0200)
commitb82ca3c63b98489a58d9d17075a5bd35b0b8b443
treee5b29788f7b6fd30df93d4763af16b07271bb48a
parent1104dfef207708fbb5d7999a9d0fd4b440d4ed96
rgw: make rollback refcount tag match

When the refcount does a "get", the tag ends with a null character,
but during a rollback, when the tag is "put" it does not end with a
null character, so the same tag is not being manipulated and the
refcounts are therefore off, preventing future deletion of an rgw
object. This adds the null character to the "put" operation.

This change was originally submitted by lltlo <120680451@qq.com> but
wasn't signed-off.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
(cherry picked from commit a0fee94982d89f0210e1c526605831105cd90ef4)

Conflicts:
src/rgw/rgw_rados.cc
src/rgw/rgw_rados.cc