]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: convert plain object to versioned (with null version) when removing 8755/head
authorYehuda Sadeh <yehuda@redhat.com>
Wed, 23 Mar 2016 01:14:57 +0000 (18:14 -0700)
committerKarol Mroz <kmroz@suse.de>
Wed, 1 Jun 2016 20:03:52 +0000 (13:03 -0700)
commit300c11179290d9b119ff6f310efd1cf5b559b3e1
treebfb4c8c7424d4d010b4fa7511a7e4df65dc3da8b
parenta33629106ec64acdaba45bf9db18d2402a926b8e
rgw: convert plain object to versioned (with null version) when removing

Fixes #15243

When removing a plain null versioned object (was created prior to bucket versioning
enabled), need to convert the bucket index representation to a versioned one. This
is needed so that all the versioning mechanics play together.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit c6334d430b17739fed2df2b4481ae395ef6568d9)

Conflicts:
        src/rgw/rgw_rados.cc
          - hammer is missing get_zone() API from which log_data can be
            obtained. Needed to fall back to zone_public_config
            structure in bucket_index_unlink_instance() definition.
          - olh_tag string parameter added to
            bucket_index_unlink_instance() definition.
        src/rgw/rgw_rados.h
          - olh_tag string parameter added to
            bucket_index_unlink_instance() declaration.
src/cls/rgw/cls_rgw.cc
src/cls/rgw/cls_rgw_client.cc
src/cls/rgw/cls_rgw_client.h
src/cls/rgw/cls_rgw_ops.h
src/rgw/rgw_rados.cc
src/rgw/rgw_rados.h