mirror of
https://github.com/ceph/ceph
synced 2024-12-18 01:16:55 +00:00
OSDMap: dedup the primary_temp
Signed-off-by: Greg Farnum <greg@inktank.com>
This commit is contained in:
parent
e9e615cb12
commit
1f81fda58c
@ -1017,6 +1017,12 @@ void OSDMap::dedup(const OSDMap *o, OSDMap *n)
|
||||
n->pg_temp = o->pg_temp;
|
||||
}
|
||||
|
||||
// does primary_temp match?
|
||||
if (o->primary_temp->size() == n->primary_temp->size()) {
|
||||
if (*o->primary_temp == *n->primary_temp)
|
||||
n->primary_temp = o->primary_temp;
|
||||
}
|
||||
|
||||
// do uuids match?
|
||||
if (o->osd_uuid->size() == n->osd_uuid->size() &&
|
||||
*o->osd_uuid == *n->osd_uuid)
|
||||
|
Loading…
Reference in New Issue
Block a user