]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgwlc: format event.eventName with to_event_string(...) 39192/head
authorMatt Benjamin <mbenjamin@redhat.com>
Wed, 29 Dec 2021 17:47:42 +0000 (12:47 -0500)
committerMatt Benjamin <mbenjamin@redhat.com>
Tue, 4 Jan 2022 20:40:46 +0000 (15:40 -0500)
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/rgw/rgw_notify.cc

index e565f9872380490feecf0a255fb4ea548ce83b4a..57c028479b4b7383f5858cd172371f31776aec34 100644 (file)
@@ -680,7 +680,7 @@ static inline void populate_event(reservation_t& res,
         EventType event_type,
         rgw_pubsub_s3_event& event) {
   event.eventTime = mtime;
-  event.eventName = to_string(event_type);
+  event.eventName = to_event_string(event_type);
   event.userIdentity = res.user_id;    // user that triggered the change
   event.x_amz_request_id = res.req_id; // request ID of the original change
   event.x_amz_id_2 = res.store->getRados()->host_id; // RGW on which the change was made