From: Maxime Henrion Date: Fri, 29 May 2026 15:55:39 +0000 (-0400) Subject: BUG/MINOR: cache: fix cache tree iteration X-Git-Tag: v3.4.0~48 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=839b87ac9fb6e1de6772b28eee797f62ae2363ce;p=thirdparty%2Fhaproxy.git BUG/MINOR: cache: fix cache tree iteration Ever since the introduction of multiple cache trees, the "show cache" CLI command was not properly showing the contents of each tree, but was only showing the first one. Fix that by properly resetting next_key when we switch to the next tree. Should be backported up to 3.0. --- diff --git a/src/cache.c b/src/cache.c index 8349bdd17..f6055cc50 100644 --- a/src/cache.c +++ b/src/cache.c @@ -3047,6 +3047,7 @@ static int cli_io_handler_show_cache(struct appctx *appctx) node = eb32_lookup_ge(&cache_tree->entries, next_key); if (!node) { ctx->next_key = 0; + next_key = 0; break; }