rgw_notify.cc did not initialize res_id for non-persistent topics.
Although it was not required for non-persistent topics, it might cause
an issue when a topic is changed from non-persistent to persistent
between "reserve" and "commit".
Signed-off-by: Vedansh Bhartia <vedanshbhartia@gmail.com>
"' (unique topic: '" << topic_cfg.name <<
"') apply to event of type: '" << to_string(event_type) << "'" << dendl;
- cls_2pc_reservation::id_t res_id;
+ cls_2pc_reservation::id_t res_id = cls_2pc_reservation::NO_ID;
if (topic_cfg.dest.persistent) {
// TODO: take default reservation size from conf
constexpr auto DEFAULT_RESERVATION = 4*1024U; // 4K