]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgwlc: optionally support notifications on object expiration
authorMatt Benjamin <mbenjamin@redhat.com>
Tue, 26 Jan 2021 17:52:47 +0000 (12:52 -0500)
committerMatt Benjamin <mbenjamin@redhat.com>
Tue, 4 Jan 2022 14:26:09 +0000 (09:26 -0500)
commit35a4eb4410394a0014648dda7df92642f3b536d3
tree17340f5ef8fd3b0c2d1dc2a5fe562ab5d5e8cbeb
parent9c659f228e46591a8edeba85446534a25c260af1
rgwlc:  optionally support notifications on object expiration

Most of the work is to remove direct knowledge of req_state from
methods in rgw_notify.

I've chosen to create new notification types matching the different
expire actions (but not transition).  The new event types are not
nested under Delete.  Notifications are sent iff rgw_lc_notify is true
(default false).

Adjusted per comments in initial review, in particular, notification from
lifecycle is no longer conditional on a config setting, and constness
is restored.

Fixes: https://tracker.ceph.com/issues/49068
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
12 files changed:
src/rgw/rgw_lc.cc
src/rgw/rgw_notify.cc
src/rgw/rgw_notify.h
src/rgw/rgw_notify_event_type.cc
src/rgw/rgw_notify_event_type.h
src/rgw/rgw_op.cc
src/rgw/rgw_sal.h
src/rgw/rgw_sal_dbstore.cc
src/rgw/rgw_sal_dbstore.h
src/rgw/rgw_sal_rados.cc
src/rgw/rgw_sal_rados.h
src/rgw/rgw_sync_module_pubsub_rest.cc