]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/osd_types: pass a const bufferlist to object_info_t::decode()
authorKefu Chai <kchai@redhat.com>
Sat, 19 Dec 2020 11:38:49 +0000 (19:38 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 19 Dec 2020 12:02:06 +0000 (20:02 +0800)
more constness, better readability.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/osd/osd_types.h

index b6e1474b324efe4d063430919bd01c61db33561d..a9694f1390439e41511d344c9b96d95aa5b6b1bb 100644 (file)
@@ -5881,7 +5881,7 @@ struct object_info_t {
 
   void encode(ceph::buffer::list& bl, uint64_t features) const;
   void decode(ceph::buffer::list::const_iterator& bl);
-  void decode(ceph::buffer::list& bl) {
+  void decode(const ceph::buffer::list& bl) {
     auto p = std::cbegin(bl);
     decode(p);
   }