From 4e8173424731acf89f9cc8a8f36c63361c243907 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Sat, 16 Oct 2021 08:31:08 +0800 Subject: [PATCH] common/bl: mark bl::prepare_iovs() const Signed-off-by: Kefu Chai --- src/common/buffer.cc | 2 +- src/include/buffer.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/buffer.cc b/src/common/buffer.cc index 0fd90606862..4b1bc08936c 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 b0b8c440dec..0c89367dd3b 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(); -- 2.47.3