- fast-reload, in hints_swap_tree also swap the node count of the trees.

This commit is contained in:
W.C.A. Wijngaards 2024-01-09 12:12:14 +01:00
parent 9c1274ed30
commit b567a5c07e

View File

@ -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;
}