save works

This commit is contained in:
Rongsong Shen 2026-03-04 18:18:53 +08:00
parent acfbec875b
commit 3f74f14687
38 changed files with 751 additions and 448 deletions

View file

@ -148,7 +148,7 @@ static int xcesched_push_configs(cluster_t* c)
FREEUP(configdata.data.conf4sched);
unlock_collect_queues(&qlist);
xlist_fini(&clist);
xlist_fini(&qlist);
xlist_fini(&rlist);
@ -187,7 +187,9 @@ static int xcesched_push_jobs(cluster_t* c)
rc = xce_push_data_req(c->sched.ep, c->myhost, &data, check_controller, c,
100);
FREEUP(jobs.jobs);
unlock_collect_jobs(&jlist);
xlist_fini(&jlist);
return rc;
}
@ -224,7 +226,9 @@ static int xcesched_push_workers(cluster_t* c)
free_resval_with_idx_list(&(w->resvals_to_sched), w->nresvals_to_sched);
}
FREEUP(workers.workers);
unlock_collect_workers(&wlist);
xlist_fini(&wlist);
return rc;
}
@ -476,7 +480,12 @@ static int sched_worker_join(int type, int situation, void* data, va_list ap)
return 0;
}
lock(c->workermgr, RTTI_LOCK_READ);
rc = key_find(c->workermgr, (void*)name, (void**)&w);
if (w != NULL) {
reference(w);
}
unlock(c->workermgr);
if (rc < 0) {
return rc;
}
@ -487,6 +496,8 @@ static int sched_worker_join(int type, int situation, void* data, va_list ap)
rc = sched_worker_change(type, situation, data, c, w);
dereference(w);
return rc;
}