]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common/bl: mark bl::prepare_iovs() const 43571/head
authorKefu Chai <tchaikov@gmail.com>
Sat, 16 Oct 2021 00:31:08 +0000 (08:31 +0800)
committerKefu Chai <tchaikov@gmail.com>
Sat, 16 Oct 2021 00:31:08 +0000 (08:31 +0800)
Signed-off-by: Kefu Chai <tchaikov@gmail.com>
src/common/buffer.cc
src/include/buffer.h

index 0fd90606862ec37ba47757e648c7c8e084228931..4b1bc08936cda9f4dae3ebd759f676b81493450e 100644 (file)
@@ -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;
index b0b8c440dec0799268ca8313c8a73de1753ec559..0c89367dd3b2c42fc55bee06981a0bb0e0691886 100644 (file)
@@ -1203,7 +1203,7 @@ struct error_code;
       std::vector<iovec> iov;
     };
     using iov_vec_t = std::vector<iovec_t>;
-    iov_vec_t prepare_iovs();
+    iov_vec_t prepare_iovs() const;
 
     uint32_t crc32c(uint32_t crc) const;
     void invalidate_crc();