epoch_t last = osdmap.get_epoch();
int max = g_conf->osd_map_message_max;
for (epoch_t e = MAX(first, m->get_full_first());
- e < MIN(last, m->get_full_last()) && max > 0;
+ e <= MIN(last, m->get_full_last()) && max > 0;
++e, --max) {
int r = get_version_full(e, reply->maps[e]);
assert(r >= 0);
}
for (epoch_t e = MAX(first, m->get_inc_first());
- e < MIN(last, m->get_inc_last()) && max > 0;
+ e <= MIN(last, m->get_inc_last()) && max > 0;
++e, --max) {
int r = get_version(e, reply->incremental_maps[e]);
assert(r >= 0);