myxce/src/controller
Rongsong Shen febb4a6c4d fix: preserve admin-set host state across worker re-registration in makeWorker_
When a worker re-joins and already exists in workermgr, makeWorker_()
now overrides the existing slot instead of returning EEXIST. Admin-set
flags (LOCKEDU, CLOSED, HIDDEN, CLOSED_BY_ADMIN) survive the override.

Add XCE_WORKER_CLOSED_BY_ADMIN flag to distinguish admin-closed hosts
from workload-closed ones. worker_ctrl sets/clears it alongside CLOSED.

Refactor worker_init/worker_destroy into copy_worker/kill_worker helpers
shared by both fresh creation and override paths.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-13 10:38:39 +00:00
..
include controller will pass resource <name, value> pair than <idx, value> pair 2026-05-13 07:18:03 +00:00
testsuite feat: implement job state, queue state, and worker recovery in WAL replay 2026-05-08 08:19:20 +00:00
apiserver.c controller will pass resource <name, value> pair than <idx, value> pair 2026-05-13 07:18:03 +00:00
CLAUDE.md Merge Go frontend (apiserver + xcecli) into meson build 2026-04-14 11:23:18 +08:00
cluster.c fix: correct controller restart recovery — jobs, workers, and resource ordering 2026-05-09 03:02:39 +00:00
ctrl_metrics.c feat: P3-7 ctrl_metrics — 7 atomic counters/gauges + descriptor table + persist wiring 2026-05-08 00:04:06 +00:00
dataex.c controller will pass resource <name, value> pair than <idx, value> pair 2026-05-13 07:18:03 +00:00
ha.c refactor: simplify ha.c comments and extract HA config constants 2026-05-08 03:56:38 +00:00
ha.h refactor: simplify ha.c comments and extract HA config constants 2026-05-08 03:56:38 +00:00
job.c feat: implement job state, queue state, and worker recovery in WAL replay 2026-05-08 08:19:20 +00:00
join.c fix: correct controller restart recovery — jobs, workers, and resource ordering 2026-05-09 03:02:39 +00:00
main.c fix incorrect handle of -n option 2026-05-09 06:58:57 +00:00
meson.build feat: P3-7 ctrl_metrics — 7 atomic counters/gauges + descriptor table + persist wiring 2026-05-08 00:04:06 +00:00
misc.c save works 2026-03-05 16:03:37 +08:00
myapp.c reformat code and job array 2025-11-07 16:14:27 +08:00
myconf.c save works 2026-03-03 16:49:26 +08:00
opget.c controller will pass resource <name, value> pair than <idx, value> pair 2026-05-13 07:18:03 +00:00
opupd.c save works 2026-03-03 16:49:26 +08:00
persist.c fix: correct controller restart recovery — jobs, workers, and resource ordering 2026-05-09 03:02:39 +00:00
queue.c feat: implement job state, queue state, and worker recovery in WAL replay 2026-05-08 08:19:20 +00:00
repl.c feat: P2-5 repl_start/complete_catchup, repl_needs_snapshot — standby catch-up state 2026-05-07 18:14:12 +00:00
reply.c controller will pass resource <name, value> pair than <idx, value> pair 2026-05-13 07:18:03 +00:00
resources.c update controller code 2025-11-05 16:58:57 +08:00
sched.c controller will pass resource <name, value> pair than <idx, value> pair 2026-05-13 07:18:03 +00:00
task.c save works 2026-03-04 18:18:53 +08:00
worker.c fix: preserve admin-set host state across worker re-registration in makeWorker_ 2026-05-13 10:38:39 +00:00