save works

This commit is contained in:
Rongsong Shen 2026-02-28 17:55:50 +08:00
parent b1faeb94b6
commit b748e30d20
35 changed files with 1247 additions and 2149 deletions

View file

@ -23,9 +23,9 @@ static int do_update_resvals(cluster_t* c, endpoint_t* ep,
int idx = priv->u.idx;
if ((priv->role == HostRole_worker) && (idx >= 0)) {
worker_t* w;
worker_t* w = NULL;
w = workermgr_lock_byid(&(c->workermgr), idx, OBJREF_UPDATE);
rc = vget(c->workermgr, idx, (void**)&w);
if (w == NULL) {
rc = -E_XCE_BAD_WORKER;
} else {