The is_up() check implicitly coveres the exist() check,
so below here the exist() check is not necessary.
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
osdmap->get_all_osds(old);
for (set<int>::iterator p = old.begin(); p != old.end(); ++p) {
if (*p != whoami &&
- osdmap->have_inst(*p) && // in old map
- (!newmap->exists(*p) || !newmap->is_up(*p))) { // but not the new one
+ osdmap->have_inst(*p) && // in old map
+ !newmap->is_up(*p)) { // but not the new one
if (!waited_for_reservations) {
service.await_reserved_maps();
waited_for_reservations = true;