]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/osd: more constness 37323/head
authorKefu Chai <kchai@redhat.com>
Wed, 23 Sep 2020 04:24:36 +0000 (12:24 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 23 Sep 2020 04:24:52 +0000 (12:24 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/osd/recovery_backend.h

index 748ec5ab0e17eedee2cf3533751b28eb47696486..21eb53fa7713b4fd795eb5dbaff8b99a3b51b185 100644 (file)
@@ -62,10 +62,10 @@ public:
   void remove_recovering(const hobject_t& soid) {
     recovering.erase(soid);
   }
-  bool is_recovering(const hobject_t& soid) {
+  bool is_recovering(const hobject_t& soid) const {
     return recovering.count(soid) != 0;
   }
-  uint64_t total_recovering() {
+  uint64_t total_recovering() const {
     return recovering.size();
   }