]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix segfault in OpsLogRados::log when realm is reloaded 45410/head
authorCory Snyder <csnyder@iland.com>
Thu, 3 Feb 2022 19:48:05 +0000 (14:48 -0500)
committerCasey Bodley <cbodley@redhat.com>
Tue, 14 Jun 2022 14:36:26 +0000 (10:36 -0400)
commitb5de2cea810bc139dabd96575d3b66295a9e4711
tree527b471941ee69f9e88b54bb5dc52afaef74e82f
parentf07e47ae405218dbe4029ed9c82559d0cf1667a5
rgw: fix segfault in OpsLogRados::log when realm is reloaded

We weren't previously handling the deallocation of the store when
a realm was reloaded. Now passing a const reference to the pointer.

Fixes: https://tracker.ceph.com/issues/54130
Signed-off-by: Cory Snyder <csnyder@iland.com>
(cherry picked from commit 0713f65355586b2f6ceeb6bbce8763158847e5ed)

Conflicts:
src/rgw/rgw_log.cc
src/rgw/rgw_log.h

Cherry-pick notes:
- conflicts due to rename of RGWRados to rgw::sal::Store after Pacific

(cherry picked from commit 44a37dc0023a69da33620dc7b6e112221f7a6a0b)
src/rgw/librgw.cc
src/rgw/rgw_log.cc
src/rgw/rgw_log.h
src/rgw/rgw_main.cc