...

Source file src/go.etcd.io/bbolt/bolt_openbsd.go

Documentation: go.etcd.io/bbolt

     1  package bbolt
     2  
     3  import (
     4  	"golang.org/x/sys/unix"
     5  )
     6  
     7  func msync(db *DB) error {
     8  	return unix.Msync(db.data[:db.datasz], unix.MS_INVALIDATE)
     9  }
    10  
    11  func fdatasync(db *DB) error {
    12  	if db.data != nil {
    13  		return msync(db)
    14  	}
    15  	return db.file.Sync()
    16  }
    17  

View as plain text