]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crush: item_exists is const
authorLoic Dachary <ldachary@redhat.com>
Sat, 18 Feb 2017 20:42:29 +0000 (21:42 +0100)
committerLoic Dachary <ldachary@redhat.com>
Wed, 1 Mar 2017 16:24:08 +0000 (17:24 +0100)
Signed-off-by: Loic Dachary <ldachary@redhat.com>
src/crush/CrushWrapper.h

index abd901e12e4b8e07917095f4aa04f52d2ce861a6..f31123f0b5a36b2acc47e1758eca6cf2428bc1ea 100644 (file)
@@ -374,7 +374,7 @@ public:
     build_rmaps();
     return name_rmap.count(name);
   }
-  bool item_exists(int i) {
+  bool item_exists(int i) const {
     return name_map.count(i);
   }
   int get_item_id(const string& name) const {