Do not die if a peer is already stopped on flush error
This commit is contained in:
+6
-3
@@ -78,9 +78,12 @@ void osd_t::handle_flush_op(bool rollback, pg_num_t pg_num, pg_flush_batch_t *fb
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
printf("Error while doing flush on OSD %lu: %s\n", osd_num, strerror(-retval));
|
printf("Error while doing flush on OSD %lu: %d (%s)\n", osd_num, retval, strerror(-retval));
|
||||||
assert(c_cli.osd_peer_fds.find(peer_osd) != c_cli.osd_peer_fds.end());
|
auto fd_it = c_cli.osd_peer_fds.find(peer_osd);
|
||||||
c_cli.stop_client(c_cli.osd_peer_fds[peer_osd]);
|
if (fd_it != c_cli.osd_peer_fds.end())
|
||||||
|
{
|
||||||
|
c_cli.stop_client(fd_it->second);
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user