mirror of
https://github.com/ceph/ceph
synced 2025-01-10 21:20:46 +00:00
osd/OSDMapMapping: mark OSDMapMapping::update() private
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>
This commit is contained in:
parent
06e479103c
commit
1721d11dbb
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user