shithub: gefs

Download patch

ref: d993335da1407bd2ee79aef2332f216c9742f44e
parent: 28bf51b393100742747e41dce318a2b7a9597821
author: Michael Forney <[email protected]>
date: Tue Feb 1 16:45:38 EST 2022

blk: sync the new tail after writing the compressed log

If logappend had to insert new log blocks, it already finalized and
synced the previous head.  Only the new tail still needs to be written
out.

--- a/blk.c
+++ b/blk.c
@@ -485,8 +485,8 @@
 	p = tl->data + tl->logsz;
 	PBIT64(p, LogChain|graft);
 	free(log);
-	finalize(b);
-	if(syncblk(b) == -1)
+	finalize(tl);
+	if(syncblk(tl) == -1)
 		return -1;
 
 	oldhd = a->head.addr;