Skip to content

Commit

Permalink
Fix sync data to disk
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdimidium committed Apr 18, 2024
1 parent 5bea542 commit 80130b6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions chotki.go
Original file line number Diff line number Diff line change
Expand Up @@ -379,10 +379,6 @@ func (cho *Chotki) Drain(recs toyqueue.Records) (err error) {
}
}

if err := cho.db.Flush(); err != nil {
return err
}

if err != nil { // fixme separate packets
return
}
Expand All @@ -409,7 +405,7 @@ func (cho *Chotki) VersionVector() (vv rdx.VV, err error) {
return
}

var WriteOptions = pebble.WriteOptions{Sync: false}
var WriteOptions = pebble.WriteOptions{Sync: true}

var KeyLogLen = []byte("Mloglen")

Expand Down

0 comments on commit 80130b6

Please sign in to comment.