]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw/notification/kafka: simplify kafka connection memory management 51796/head
authorYuval Lifshitz <ylifshit@redhat.com>
Mon, 22 May 2023 09:38:14 +0000 (09:38 +0000)
committerYuval Lifshitz <ylifshit@redhat.com>
Sun, 28 May 2023 16:33:15 +0000 (16:33 +0000)
commitbb3abaf6b029454781bac50928359bbfdf56984b
tree8628a798cc5b0a8ca17bca6f90b68e313da1238f
parent5e8d6460522b192c513de614ba71ac1dc1380e41
rgw/notification/kafka: simplify kafka connection memory management

use a bare pointer and a unique_ptr instead of a shared pointer (boost::intrusive_ptr).
and use the broker name as the handle exposed outside of the kafka module.

Fixes: https://tracker.ceph.com/issues/61328
Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
(cherry picked from commit fbd287602742ecbe6a0d383ce9db1b6a65c348cb)

 Conflicts:
src/rgw/rgw_kafka.cc
src/rgw/driver/rados/rgw_pubsub_push.cc
src/rgw/rgw_kafka.cc
src/rgw/rgw_kafka.h