1
0
mirror of https://github.com/ManyakRus/telegram_loki.git synced 2024-12-13 21:42:22 +02:00
telegram_loki/vendor/go.etcd.io/bbolt/bolt_openbsd.go

17 lines
241 B
Go
Raw Normal View History

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()
}