when committed osdmap is complete, it will check if should restart.
in case we shouldn't restart but we are still active, we need
the next osdmap to continue the process.
Fixes: https://tracker.ceph.com/issues/66381
Signed-off-by: Nitzan Mordechai <nmordech@redhat.com>
(cherry picked from commit
74297e6abac2868afc5edc6765c2284319091de2)
}
if (should_restart()) {
return restart();
+ } else if (!pg_shard_manager.is_stopping()) {
+ /*
+ * TODO: Missing start_waiting_for_healthy() counterpart.
+ * Only subscribe to the next map until implemented.
+ * See https://tracker.ceph.com/issues/66832
+ */
+ return get_shard_services().osdmap_subscribe(osdmap->get_epoch() + 1, false);
} else {
return seastar::now();
}