Skip to content

Commit

Permalink
#13 Merged logmgr
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony4m committed Dec 21, 2024
1 parent 5b7619e commit 33caf3f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion buffer/buffer.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ func (b *Buffer) assignToBlock(block *kfile.BlockId) error {

func (b *Buffer) flush() error {
if b.txnum > 0 && b.blk != nil {
b.lm.FlushLsn(b.lsn)
err := b.lm.FlushLSN(b.lsn)
if err != nil {
return err
}
if err := b.fm.Write(b.blk, b.contents); err != nil {
return err
}
Expand Down

0 comments on commit 33caf3f

Please sign in to comment.