Skip to content

Commit

Permalink
crimson/osd: shutdown if osdmap forces us to do so
Browse files Browse the repository at this point in the history
mirror the change introduced by 5dbae13
in classic osd.

Signed-off-by: Kefu Chai <[email protected]>
tchaikov committed Jun 24, 2021
1 parent 20e02b0 commit 632f9ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/crimson/osd/osd.cc
Original file line number Diff line number Diff line change
@@ -1087,7 +1087,8 @@ seastar::future<> OSD::committed_osd_maps(version_t first,
}).then([m, this] {
if (state.is_active()) {
logger().info("osd.{}: now active", whoami);
if (!osdmap->exists(whoami)) {
if (!osdmap->exists(whoami) ||
osdmap->is_stop(whoami)) {
return shutdown();
}
if (should_restart()) {

0 comments on commit 632f9ac

Please sign in to comment.