Skip to content

Commit

Permalink
Merge pull request ceph#10354 from stiopaa1/msg_message_addConst
Browse files Browse the repository at this point in the history
msg/Message.h: add const to member function

Reviewed-by: Kefu Chai <[email protected]>
  • Loading branch information
tchaikov authored Jul 24, 2016
2 parents e990bde + 95a7c1e commit b1f084a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/msg/Message.h
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ class Message : public RefCountedObject {
byte_throttler->put(data.length());
bl.claim(data, flags);
}
off_t get_data_len() { return data.length(); }
off_t get_data_len() const { return data.length(); }

void set_recv_stamp(utime_t t) { recv_stamp = t; }
const utime_t& get_recv_stamp() const { return recv_stamp; }
Expand Down

0 comments on commit b1f084a

Please sign in to comment.