Extract "state-watching" etcd client into a separate file

This commit is contained in:
Vitaliy Filippov
2020-05-22 12:38:40 +03:00
parent 6202260018
commit f6a01a4819
10 changed files with 566 additions and 480 deletions
+1 -1
View File
@@ -407,7 +407,7 @@ void osd_t::stop_client(int peer_fd)
{
// Reload configuration from etcd when the connection is dropped
printf("[OSD %lu] Stopping client %d (OSD peer %lu)\n", osd_num, peer_fd, cl.osd_num);
peer_states.erase(cl.osd_num);
st_cli.peer_states.erase(cl.osd_num);
repeer_pgs(cl.osd_num);
}
else