i.acting = oldacting;
i.up = oldup;
- if (oldacting != acting || oldup != up) {
- info.history.same_interval_since = osdmap->get_epoch();
- }
- if (oldup != up) {
- info.history.same_up_since = osdmap->get_epoch();
- }
-
if (i.acting.size()) {
i.maybe_went_rw =
lastmap->get_up_thru(i.acting[0]) >= i.first &&
i.maybe_went_rw = 0;
}
- if (oldprimary != get_primary()) {
- info.history.same_primary_since = osdmap->get_epoch();
- }
-
dout(10) << " noting past " << i << dendl;
dirty_info = true;
}
+ if (oldacting != acting || oldup != up) {
+ info.history.same_interval_since = osdmap->get_epoch();
+ }
+ if (oldup != up) {
+ info.history.same_up_since = osdmap->get_epoch();
+ }
+ if (oldprimary != get_primary()) {
+ info.history.same_primary_since = osdmap->get_epoch();
+ }
+
dout(10) << " up " << oldup << " -> " << up
<< ", acting " << oldacting << " -> " << acting
<< ", role " << oldrole << " -> " << role << dendl;