OSDMap: dedup the primary_temp

Signed-off-by: Greg Farnum <greg@inktank.com>
This commit is contained in:
Greg Farnum 2013-12-18 17:53:11 -08:00
parent e9e615cb12
commit 1f81fda58c

View File

@ -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)