From: Kefu Chai Date: Thu, 25 Apr 2019 01:16:55 +0000 (+0800) Subject: buffer: more constness X-Git-Tag: v15.1.0~2807^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f558f7300ae6b09df645b8ac4042b42f6f83d202;p=ceph.git buffer: more constness Signed-off-by: Kefu Chai --- diff --git a/src/include/buffer.h b/src/include/buffer.h index 6e354b04a563..8bbede17666b 100644 --- a/src/include/buffer.h +++ b/src/include/buffer.h @@ -829,7 +829,7 @@ inline namespace v14_2_0 { pos += len; return r; } - char *get_pos() { + char *get_pos() const { return pos; } @@ -860,7 +860,7 @@ inline namespace v14_2_0 { } } - size_t get_logical_offset() { + size_t get_logical_offset() const { return out_of_band_offset + (pos - space.bp_data); } };