]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
buffer: more constness
authorKefu Chai <kchai@redhat.com>
Thu, 25 Apr 2019 01:16:55 +0000 (09:16 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 25 Apr 2019 01:16:55 +0000 (09:16 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/include/buffer.h

index 6e354b04a5637eeb2ec423e84a92f6b5dec89315..8bbede17666bb6583ff7c6f0b2604ef3db63e1e5 100644 (file)
@@ -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);
       }
     };