diff options
Diffstat (limited to 'src/messages/MClientReply.h')
-rw-r--r-- | src/messages/MClientReply.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/messages/MClientReply.h b/src/messages/MClientReply.h index 05d96cb3675..ee3dbb92a4f 100644 --- a/src/messages/MClientReply.h +++ b/src/messages/MClientReply.h @@ -186,18 +186,18 @@ public: bufferlist snapbl; public: - int get_op() { return head.op; } + int get_op() const { return head.op; } void set_mdsmap_epoch(epoch_t e) { head.mdsmap_epoch = e; } - epoch_t get_mdsmap_epoch() { return head.mdsmap_epoch; } + epoch_t get_mdsmap_epoch() const { return head.mdsmap_epoch; } - int get_result() { return (__s32)(__u32)head.result; } + int get_result() const { return (__s32)(__u32)head.result; } void set_result(int r) { head.result = r; } void set_unsafe() { head.safe = 0; } - bool is_safe() { return head.safe; } + bool is_safe() const { return head.safe; } MClientReply() {} MClientReply(MClientRequest *req, int result = 0) : @@ -212,8 +212,8 @@ private: ~MClientReply() {} public: - const char *get_type_name() { return "creply"; } - void print(ostream& o) { + const char *get_type_name() const { return "creply"; } + void print(ostream& o) const { o << "client_reply(???:" << get_tid(); o << " = " << get_result(); if (get_result() <= 0) { |