From 0fad24b5da2bdfb926ca1b38f50f5ddf3cc5d499 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Sat, 14 Feb 2026 13:24:03 +0000 Subject: [PATCH] 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. --- addons/deviceatlas/da.c | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/deviceatlas/da.c b/addons/deviceatlas/da.c index d919fb7e5..676d4222c 100644 --- a/addons/deviceatlas/da.c +++ b/addons/deviceatlas/da.c @@ -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; -- 2.47.3