forked from lei.chen/myxce
add kiro skills
This commit is contained in:
parent
e5fde7b55f
commit
86fe35e671
53 changed files with 8406 additions and 166 deletions
|
|
@ -1193,10 +1193,12 @@ int persist_worker_hook_fun(int type, int situation, int detail,
|
|||
size_t capnp_sz = 0;
|
||||
int rc = 0;
|
||||
|
||||
/* All worker detail types — args: cluster_t*, worker_t*.
|
||||
* Caller holds the appropriate lock (workermgr write lock for JOIN,
|
||||
* worker write lock for DEAD/UPDATE), so no extra lock needed here. */
|
||||
/* All worker detail types: args are cluster_t* then worker_t*.
|
||||
* JOIN uses a unified signature with an extra char* name between them;
|
||||
* DEAD and UPDATE use (cluster_t*, worker_t*) directly. */
|
||||
(void)va_arg(ap, cluster_t*);
|
||||
if (detail == HOOK_DETAIL_WORKER_JOIN)
|
||||
(void)va_arg(ap, char*); /* skip name — present only for JOIN */
|
||||
worker_t* w = va_arg(ap, worker_t*);
|
||||
if (!w) return 0; /* guard: failed join produced no worker slot */
|
||||
rc = capnp_encode_worker(&w->host, &buf, &capnp_sz);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue