feat(controller): clusterconfig-schema-split task 2.3 — remove dead port defaulting

Removes SET_DEFAULT_IF_UNSET(c->port, 0, 9990) from fill_default_cluster_config()
in myconf.c and config_repl.c, now dead since cluster_config_t.port was removed
in task 1.2 and cluster_open_listener stopped reading it in task 2.1. All of
src/controller/{cluster,myconf,config_repl}.c now compile clean.
This commit is contained in:
Rongsong Shen 2026-07-21 04:29:28 +00:00
parent 81fecb497c
commit 1fa784434f
3 changed files with 1 additions and 3 deletions

View file

@ -584,7 +584,6 @@ static void *s_probe_ssl_ctx = NULL;
static void fill_default_cluster_config(cluster_config_t *c)
{
SET_DEFAULT_IF_UNSET(c->port, 0, 9990);
SET_DEFAULT_IF_UNSET(c->heartbeat_interval, 0, 5);
SET_DEFAULT_IF_UNSET(c->fetch_job_interval, 0, 10);
}

View file

@ -71,7 +71,6 @@ static int cluster_hook_fun(int type, int situation, int detail, void* data,
static void fill_default_cluster_config(cluster_config_t* c)
{
SET_DEFAULT_IF_UNSET(c->port, 0, 9990);
SET_DEFAULT_IF_UNSET(c->heartbeat_interval, 0, 5);
SET_DEFAULT_IF_UNSET(c->fetch_job_interval, 0, 10);
}