From b567a5c07ebc43f9c4ba258f879efbc863f7496c Mon Sep 17 00:00:00 2001 From: "W.C.A. Wijngaards" Date: Tue, 9 Jan 2024 12:12:14 +0100 Subject: [PATCH] - fast-reload, in hints_swap_tree also swap the node count of the trees. --- iterator/iter_hints.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/iterator/iter_hints.c b/iterator/iter_hints.c index ce2741eaf..5a95b78cd 100644 --- a/iterator/iter_hints.c +++ b/iterator/iter_hints.c @@ -580,6 +580,9 @@ void hints_swap_tree(struct iter_hints* hints, struct iter_hints* data) { rbnode_type* oldroot = hints->tree.root; + size_t oldcount = hints->tree.count; hints->tree.root = data->tree.root; + hints->tree.count = data->tree.count; data->tree.root = oldroot; + data->tree.count = oldcount; } -- 2.47.2