Codebase list golang-github-boltdb-bolt / scrub-obsolete/main bolt_linux.go
scrub-obsolete/main

Tree @scrub-obsolete/main (Download .tar.gz)

bolt_linux.go @scrub-obsolete/mainraw · 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()))
}