]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/OSDMapMapping: mark OSDMapMapping::update() private 41009/head
authorKefu Chai <kchai@redhat.com>
Sat, 24 Apr 2021 07:07:25 +0000 (15:07 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 24 Apr 2021 07:07:26 +0000 (15:07 +0800)
this method could be misused easily. and it is only used by test, so
mark it private.

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

index 70258ff4e8d69652d2f6c6664f442a8f058e0f8f..b4ddd322b19aa6264e514582f5a5a11fa6199c6b 100644 (file)
@@ -286,6 +286,9 @@ private:
       mapping->_finish(*osdmap);
     }
   };
+  friend class OSDMapTest;
+  // for testing only
+  void update(const OSDMap& map);
 
 public:
   void get(pg_t pgid,
@@ -326,7 +329,6 @@ public:
     return acting_rmap[osd];
   }
 
-  void update(const OSDMap& map);
   void update(const OSDMap& map, pg_t pgid);
 
   std::unique_ptr<MappingJob> start_update(