From: Kefu Chai Date: Sat, 16 Oct 2021 00:31:08 +0000 (+0800) Subject: common/bl: mark bl::prepare_iovs() const X-Git-Tag: v17.1.0~660^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F43571%2Fhead;p=ceph.git common/bl: mark bl::prepare_iovs() const Signed-off-by: Kefu Chai --- diff --git a/src/common/buffer.cc b/src/common/buffer.cc index 0fd90606862e..4b1bc08936cd 100644 --- a/src/common/buffer.cc +++ b/src/common/buffer.cc @@ -2030,7 +2030,7 @@ int buffer::list::write_fd(int fd, uint64_t offset) const } #endif -buffer::list::iov_vec_t buffer::list::prepare_iovs() +buffer::list::iov_vec_t buffer::list::prepare_iovs() const { size_t index = 0; uint64_t off = 0; diff --git a/src/include/buffer.h b/src/include/buffer.h index b0b8c440dec0..0c89367dd3b2 100644 --- a/src/include/buffer.h +++ b/src/include/buffer.h @@ -1203,7 +1203,7 @@ struct error_code; std::vector iov; }; using iov_vec_t = std::vector; - iov_vec_t prepare_iovs(); + iov_vec_t prepare_iovs() const; uint32_t crc32c(uint32_t crc) const; void invalidate_crc();