ref: 1c179e58ed619a73da464cc140ef5bcf81588979
parent: 972b048ddf63dd11f1111475dc414ef686eb8542
author: Ori Bernstein <ori@eigenstate.org>
date: Mon Dec 8 16:23:21 EST 2025
gefs: correct accounting of npull after collapsing root when we collapse the root of the tree, we need to count the number of nodes we pulled from the message buffer correctly; that means that when we step down a node in the tree, we need to copy the npull from the root down too.
--- a/sys/src/cmd/gefs/tree.c
+++ b/sys/src/cmd/gefs/tree.c
@@ -1114,6 +1114,7 @@
trybalance(t, p, pp, p->idx);
/* If we merged the root node, break out. */
if(up == path && pp != nil && pp->op == POmerge && p->b->nval == 2){+ pp->npull = p->npull;
rp = pp;
goto Out;
}
--
⑨