fix kill worker cause controller die

This commit is contained in:
Rongsong Shen 2026-01-23 18:21:12 +08:00
parent 9e07a1b227
commit 06c561cea4
2 changed files with 15 additions and 2 deletions

View file

@ -521,6 +521,8 @@ int handle_worker_leave(cluster_t* c, int idx)
return -errno;
}
w->ep = NULL;
mark_worker_unavail(c, w);
obj_deref(w);