]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
CrushWrapper: rmaps don't need to be mutable
authorSamuel Just <sam.just@inktank.com>
Wed, 6 Jun 2012 22:13:18 +0000 (15:13 -0700)
committerSamuel Just <sam.just@inktank.com>
Thu, 5 Jul 2012 17:15:00 +0000 (10:15 -0700)
Signed-off-by: Samuel Just <sam.just@inktank.com>
src/crush/CrushWrapper.h

index 3a6acdde9c41265745bfc2c522422b6b002240d2..b7e72bd2581bd7b69766cce9eed774fd2753d7f8 100644 (file)
@@ -54,8 +54,8 @@ public:
   std::map<int, string> rule_name_map;
 
   /* reverse maps */
-  mutable bool have_rmaps;
-  mutable std::map<string, int> type_rmap, name_rmap, rule_name_rmap;
+  bool have_rmaps;
+  std::map<string, int> type_rmap, name_rmap, rule_name_rmap;
 
 private:
   void build_rmaps() {