mirror of
https://github.com/ceph/ceph
synced 2025-02-21 01:47:25 +00:00
osd/OpRequest: make get_req() return const
Anybody who needs a mutable pointer should be calling get_nonconst_ref() and justify themselves. Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
parent
a3f601cbad
commit
a4feab5e87
@ -110,7 +110,7 @@ public:
|
||||
bool send_map_update;
|
||||
epoch_t sent_epoch;
|
||||
bool hitset_inserted;
|
||||
Message *get_req() const { return request; }
|
||||
const Message *get_req() const { return request; }
|
||||
Message *get_nonconst_req() { return request; }
|
||||
|
||||
const char *state_string() const {
|
||||
|
Loading…
Reference in New Issue
Block a user