Implement flushing (stabilize/rollback) of unstable entries on start of the PG

This commit is contained in:
Vitaliy Filippov
2020-03-14 02:49:34 +03:00
parent 46f9bd2a69
commit 21d0b06959
10 changed files with 275 additions and 47 deletions
+2 -1
View File
@@ -327,7 +327,7 @@ void osd_t::stop_client(int peer_fd)
cancel_osd_ops(cl);
osd_peer_fds.erase(cl.osd_num);
repeer_pgs(cl.osd_num, false);
peering_state |= OSD_PEERING_PEERS;
peering_state |= OSD_CONNECTING_PEERS;
}
if (cl.read_op)
{
@@ -388,6 +388,7 @@ void osd_t::exec_op(osd_op_t *cur_op)
{
exec_show_config(cur_op);
}
// FIXME: Do not handle operations immediately, manage some sort of a queue instead
else if (cur_op->req.hdr.opcode == OSD_OP_READ)
{
continue_primary_read(cur_op);