Codebase list golang-github-boltdb-bolt / upstream/1.3.1+git20180302.fd01fc7 bolt_linux.go
upstream/1.3.1+git20180302.fd01fc7

Tree @upstream/1.3.1+git20180302.fd01fc7 (Download .tar.gz)

bolt_linux.go @upstream/1.3.1+git20180302.fd01fc7raw · history · blame

package bolt

import (
	"syscall"
)

// fdatasync flushes written data to a file descriptor.
func fdatasync(db *DB) error {
	return syscall.Fdatasync(int(db.file.Fd()))
}