ref: d46cb056f02a90ae4f615c2d916ff7dd98913c82
parent: 5534d8068efbfafb1379b10942980c119c90571c
author: Ori Bernstein <[email protected]>
date: Sun Jan 21 20:07:42 EST 2024
tree: only fastupsert when we haven't pulled any yet
--- a/tree.c
+++ b/tree.c
@@ -1241,7 +1241,7 @@
}
b = getroot(t, &height);
- if(b->type == Tpivot && !filledbuf(b, nmsg, sz)){
+ if(npull == 0 && b->type == Tpivot && !filledbuf(b, nmsg, sz)){
fastupsert(t, b, msg, nmsg);
poperror();
return;