mirror of
https://github.com/ceph/ceph
synced 2024-12-28 06:23:08 +00:00
Merge pull request #44893 from cfsnyder/wip-54130-oplog-segfault
rgw: fix segfault in OpsLogRados::log when realm is reloaded Reviewed-by: Casey Bodley <cbodley@redhat.com>
This commit is contained in:
commit
1d25e87ed3
@ -472,7 +472,7 @@ int OpsLogSocket::log_json(struct req_state* s, bufferlist& bl)
|
||||
return 0;
|
||||
}
|
||||
|
||||
OpsLogRados::OpsLogRados(rgw::sal::Store* store): store(store)
|
||||
OpsLogRados::OpsLogRados(rgw::sal::Store* const& store): store(store)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -199,9 +199,11 @@ public:
|
||||
};
|
||||
|
||||
class OpsLogRados : public OpsLogSink {
|
||||
rgw::sal::Store* store;
|
||||
// main()'s Store pointer as a reference, possibly modified by RGWRealmReloader
|
||||
rgw::sal::Store* const& store;
|
||||
|
||||
public:
|
||||
OpsLogRados(rgw::sal::Store* store);
|
||||
OpsLogRados(rgw::sal::Store* const& store);
|
||||
int log(struct req_state* s, struct rgw_log_entry& entry) override;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user