shithub: gefs

Download patch

ref: ad74aa72f7247cc22232c3f520246607ca7516a4
parent: 26906a09d79ff2821feb1aff0bb2519226867c40
author: Ori Bernstein <ori@eigenstate.org>
date: Tue Oct 17 16:22:34 EDT 2023

snap: set the prev gen correctly

TODO: update it correctly.

--- a/snap.c
+++ b/snap.c
@@ -407,10 +407,7 @@
 	t->nsucc = 0;
 	t->ht = o->ht;
 	t->bp = o->bp;
-	if(o->nlbl == 0 && o->nsucc == 1)
-		t->prev = o->prev;
-	else
-		t->prev = o->gen;
+	t->prev = o->gen;
 	t->gen = aincv(&fs->nextgen, 1);
 
 	m[1].op = Oinsert;