Skip to content

Commit 74297e6

Browse files
committed
crimson/osd: adding osdmap subscribe
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 <[email protected]>
1 parent 2ab1415 commit 74297e6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/crimson/osd/osd.cc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1183,6 +1183,13 @@ seastar::future<> OSD::committed_osd_maps(
11831183
}
11841184
if (should_restart()) {
11851185
return restart();
1186+
} else if (!pg_shard_manager.is_stopping()) {
1187+
/*
1188+
* TODO: Missing start_waiting_for_healthy() counterpart.
1189+
* Only subscribe to the next map until implemented.
1190+
* See https://tracker.ceph.com/issues/66832
1191+
*/
1192+
return get_shard_services().osdmap_subscribe(osdmap->get_epoch() + 1, false);
11861193
} else {
11871194
return seastar::now();
11881195
}

0 commit comments

Comments
 (0)