From: Patrick Donnelly Date: Sun, 29 Jul 2018 01:11:44 +0000 (-0700) Subject: msg: add const version of get_payload X-Git-Tag: v14.0.1~575^2~8 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=44f5e4e1aba41b790972a228a8c6b2e9205eee01;p=ceph.git msg: add const version of get_payload Signed-off-by: Patrick Donnelly --- diff --git a/src/msg/Message.h b/src/msg/Message.h index 5a52b6370ec..796dbc456a3 100644 --- a/src/msg/Message.h +++ b/src/msg/Message.h @@ -384,6 +384,7 @@ public: bool empty_payload() const { return payload.length() == 0; } bufferlist& get_payload() { return payload; } + const bufferlist& get_payload() const { return payload; } void set_payload(bufferlist& bl) { if (byte_throttler) byte_throttler->put(payload.length());