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:
Kefu Chai 2021-04-24 15:07:25 +08:00
parent 06e479103c
commit 1721d11dbb

View 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(