vector<int> acting;
pg_to_acting_osds(pgid, &acting, &primary);
if (i->second.ec_pool()) {
- for (shard_id_t i = 0; i < acting.size(); ++i) {
+ for (uint8_t i = 0; i < acting.size(); ++i) {
if (acting[i] == primary) {
*out = spg_t(pgid, i);
return true;
++i) {
all_info_by_shard[i->first.shard].insert(i->first);
}
- for (shard_id_t i = 0; i < want.size(); ++i) {
+ for (uint8_t i = 0; i < want.size(); ++i) {
ss << "For position " << (unsigned)i << ": ";
if (up.size() > (unsigned)i && up[i] != CRUSH_ITEM_NONE &&
!all_info.find(pg_shard_t(up[i], i))->second.is_incomplete() &&
}
bool found_primary = false;
- for (shard_id_t i = 0; i < want.size(); ++i) {
+ for (uint8_t i = 0; i < want.size(); ++i) {
if (want[i] != CRUSH_ITEM_NONE) {
acting_backfill->insert(pg_shard_t(want[i], i));
if (!found_primary) {
int new_acting_primary) {
actingset.clear();
acting = newacting;
- for (shard_id_t i = 0; i < acting.size(); ++i) {
+ for (uint8_t i = 0; i < acting.size(); ++i) {
if (acting[i] != CRUSH_ITEM_NONE)
actingset.insert(
pg_shard_t(
}
up_primary = pg_shard_t();
primary = pg_shard_t();
- for (shard_id_t i = 0; i < up.size(); ++i) {
+ for (uint8_t i = 0; i < up.size(); ++i) {
if (up[i] == new_up_primary) {
up_primary = pg_shard_t(up[i], i);
break;
}
}
- for (shard_id_t i = 0; i < acting.size(); ++i) {
+ for (uint8_t i = 0; i < acting.size(); ++i) {
if (acting[i] == new_acting_primary) {
primary = pg_shard_t(acting[i], i);
break;