it++) {
PG *pg = 0;
- if (it->pgid.preferred() >= 0) {
- dout(20) << "ignoring localized pg " << it->pgid << dendl;
++ if (it->first.pgid.preferred() >= 0) {
++ dout(20) << "ignoring localized pg " << it->first.pgid << dendl;
+ continue;
+ }
+
ObjectStore::Transaction *t;
C_Contexts *fin;
- pg = get_or_create_pg(*it, m->get_epoch(), from, created, true, &t, &fin);
+ pg = get_or_create_pg(it->first, it->second, m->get_epoch(), from, created, true, &t, &fin);
if (!pg)
continue;
int created = 0;
- for (vector<pg_info_t>::iterator p = m->pg_info.begin();
- p != m->pg_info.end();
+ for (vector<pair<pg_info_t,pg_interval_map_t> >::iterator p = m->pg_list.begin();
+ p != m->pg_list.end();
++p) {
- if (p->pgid.preferred() >= 0) {
- dout(10) << "ignoring localized pg " << p->pgid << dendl;
++ if (p->first.pgid.preferred() >= 0) {
++ dout(10) << "ignoring localized pg " << p->first.pgid << dendl;
+ continue;
+ }
+
ObjectStore::Transaction *t = 0;
C_Contexts *fin = 0;
- PG *pg = get_or_create_pg(*p, m->get_epoch(),
+ PG *pg = get_or_create_pg(p->first, p->second, m->get_epoch(),
from, created, false, &t, &fin);
if (!pg)
continue;