mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-19 02:29:31 -05:00
BUG/MINOR: deviceatlas: set cache_size on hot-reloaded atlas instance
When hot-reloading the atlas in da_haproxy_checkinst(), the configured cache_size was not applied to the new instance, causing it to use the default value. This should be backported to lower branches.
This commit is contained in:
parent
1d1daff7c4
commit
0fad24b5da
1 changed files with 1 additions and 0 deletions
|
|
@ -299,6 +299,7 @@ static void da_haproxy_checkinst(void)
|
|||
fclose(jsonp);
|
||||
if (status == DA_OK) {
|
||||
if (da_atlas_open(&inst, extraprops, cnew, atlassz) == DA_OK) {
|
||||
inst.config.cache_size = global_deviceatlas.cachesize;
|
||||
da_atlas_close(&global_deviceatlas.atlas);
|
||||
free(global_deviceatlas.atlasimgptr);
|
||||
global_deviceatlas.atlasimgptr = cnew;
|
||||
|
|
|
|||
Loading…
Reference in a new issue