]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgwlc: remove lc entry on bucket delete 44730/head
authorMatt Benjamin <mbenjamin@redhat.com>
Tue, 4 Jan 2022 16:22:00 +0000 (11:22 -0500)
committerCory Snyder <csnyder@iland.com>
Fri, 21 Jan 2022 18:41:25 +0000 (13:41 -0500)
commit11f4fe55947e132fd60c39d0513f0bb9935ad513
treea3167158c634db9f92cdadac6cf0e2c562f05164
parent6d0261fcb9458c90b6f509c036c9df47e35eb281
rgwlc:  remove lc entry on bucket delete

Buckets with lifecycle policies installed have a state entry that
must also be deleted when the bucket is removed.

Fixes: https://tracker.ceph.com/issues/46728
N.b., should really be generic, not specific to the RADOS store, but
there doesn't seem to be a clean model for implementing generic side
effects in Zipper, currently.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
(cherry picked from commit cc1e812a003e2af74fe0c69ccae08dd7aa68bbe0)

Conflicts:
src/rgw/rgw_sal_rados.cc

Cherry-pick notes:
- Code from rgw_sal_rados.cc existed in rgw_sal.cc in Octopus
src/rgw/rgw_sal.cc