0
0
Fork 0
mirror of https://github.com/crazy-max/diun.git synced 2025-05-02 06:10:02 +00:00
crazy-max_diun/vendor/go.etcd.io/bbolt/bolt_openbsd.go

17 lines
241 B
Go
Raw Permalink Normal View History

2024-12-14 22:23:46 +01:00
package bbolt
import (
"golang.org/x/sys/unix"
)
func msync(db *DB) error {
return unix.Msync(db.data[:db.datasz], unix.MS_INVALIDATE)
}
func fdatasync(db *DB) error {
if db.data != nil {
return msync(db)
}
return db.file.Sync()
}