BUG/MINOR: resolvers: mark servers with name-resolution as non purgeable

When a server is configured with name-resolution, resolvers objects are
created with reference to this server. Thus the server is marked as non
purgeable to prevent its removal at runtime.

This does not need to be backport.
This commit is contained in:
Amaury Denoyelle 2021-08-26 15:35:59 +02:00
parent cbad112a81
commit dd56520cdf

View File

@ -2470,6 +2470,8 @@ static int resolvers_finalize_config(void)
err_code |= (ERR_ALERT|ERR_ABORT); err_code |= (ERR_ALERT|ERR_ABORT);
continue; continue;
} }
srv->flags |= SRV_F_NON_PURGEABLE;
} }
} }