mirror of
https://github.com/ceph/ceph
synced 2025-04-01 00:26:47 +00:00
buffer: more constness
Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
parent
66dac9d28a
commit
f558f7300a
@ -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);
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user