forked from lei.chen/myxce
- myapp.c: capture am_i_primary() into is_primary (avoids redundant second probe call); after load_primary_config() succeeds, record CTRL_PRIMARY role via atomic_store_explicit so cluster_init_phase2() sees the correct role (ha_init() defaults to CTRL_STANDBY) - myapp.c: add #include "ha.h" for CTRL_PRIMARY, atomic_store_explicit, and memory_order_release - cluster.c: cluster_init() wrapper now calls cluster_fini(c) before returning on create_ssl_context failure, hook failure, and cluster_init_phase2 failure — prevents SSL ctx and phase1 resource leak |
||
|---|---|---|
| .. | ||
| autoscaler | ||
| controller | ||
| docs | ||
| frontend | ||
| include | ||
| lib | ||
| nixSupport | ||
| scheduler | ||
| schema | ||
| tools | ||
| worker | ||
| flake.lock | ||
| flake.nix | ||
| meson.build | ||
| meson.options | ||