Otherwise, we might get into a situation where the primary
forgets about a stray pg. This is simpler and does not
increase the number of notifies by much.
Fixes: #7733
Signed-off-by: Samuel Just <sam.just@inktank.com>
assert(!deleting);
+ // should we tell the primary we are here?
+ send_notify = !is_primary();
+
if (role != oldrole ||
was_old_primary != is_primary()) {
// did primary change?
// take active waiters
requeue_ops(waiting_for_active);
- // should we tell the primary we are here?
- send_notify = !is_primary();
-
} else {
// no role change.
// did primary change?
if (get_primary() != old_acting_primary) {
- // we need to announce
- send_notify = true;
-
dout(10) << *this << " " << oldacting << " -> " << acting
<< ", acting primary "
<< old_acting_primary << " -> " << get_primary()