From 839b87ac9fb6e1de6772b28eee797f62ae2363ce Mon Sep 17 00:00:00 2001 From: Maxime Henrion Date: Fri, 29 May 2026 11:55:39 -0400 Subject: [PATCH] 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. --- src/cache.c | 1 + 1 file changed, 1 insertion(+) 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; }