The had_map_since always sticks to the timestamp
of the last map we ever updated. So this shall ease
CPU a liitle when the set of maps gets huge.
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
}
osdmap = newmap;
-
- had_map_since = ceph_clock_now(cct);
-
epoch_t up_epoch;
epoch_t boot_epoch;
service.retrieve_epochs(&boot_epoch, &up_epoch, NULL);
}
}
+ had_map_since = ceph_clock_now(cct);
+
epoch_t _bind_epoch = service.get_bind_epoch();
if (osdmap->is_up(whoami) &&
osdmap->get_addr(whoami) == client_messenger->get_myaddr() &&