mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-08 16:23:24 -04:00
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.
This commit is contained in:
parent
2d91a846f9
commit
839b87ac9f
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue