ref: c3940ef523467eebae22614859bad0d71da39ab7
parent: ed97b6fdc1a4acd4216b748cf82fe3ba35cb1bb1
author: Ori Bernstein <[email protected]>
date: Sun Oct 16 17:19:22 EDT 2022
blk: make the alloc log self-allocate pre-flush.
--- a/blk.c
+++ b/blk.c
@@ -276,7 +276,8 @@
cacheins(lb);
lb->logsz = Loghashsz;
p = lb->data + lb->logsz;
- PBIT64(p, (uvlong)LogEnd);
+ PBIT64(p+0, o|LogAlloc1);
+ PBIT64(p+8, (uvlong)LogEnd);
finalize(lb);
if(syncblk(lb) == -1){
dropblk(lb);