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:
Sage Weil 2017-02-20 14:21:23 -05:00
parent a3f601cbad
commit a4feab5e87

View File

@ -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 {