]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: add tail tag to track tail instance 17555/head
authorYehuda Sadeh <yehuda@redhat.com>
Wed, 5 Jul 2017 23:10:38 +0000 (16:10 -0700)
committerAbhishek Lekshmanan <abhishek@suse.com>
Thu, 7 Sep 2017 12:52:22 +0000 (14:52 +0200)
commit4f7c155c2eb241e87160db30de4e24e7d8931188
tree1a955ebcaef9913cf04171175d45ce6c4e5ec36b
parent823585311c41729309809690a7df5cb83c4ece12
rgw: add tail tag to track tail instance

Use tail_tag instead of idtag. The tail_tag is modified when either
creating a new tail, or adding a refcount to the tail (e.g., when
copying object). When just modifying the object's head, tail_tag
should remain the same. The gc will then use the tail_tag (if
exists, idtag if not) as the refcount id.

Fixes: http://tracker.ceph.com/issues/20234
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit f71a3e525d9a69fe537428f25930fb207a602afe)
src/rgw/rgw_common.h
src/rgw/rgw_op.cc
src/rgw/rgw_rados.cc
src/rgw/rgw_rados.h