diff options
Diffstat (limited to 'vendor/github.com/etcd-io/bbolt/bolt_linux.go')
-rw-r--r-- | vendor/github.com/etcd-io/bbolt/bolt_linux.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/vendor/github.com/etcd-io/bbolt/bolt_linux.go b/vendor/github.com/etcd-io/bbolt/bolt_linux.go new file mode 100644 index 000000000..7707bcacf --- /dev/null +++ b/vendor/github.com/etcd-io/bbolt/bolt_linux.go @@ -0,0 +1,10 @@ +package bbolt + +import ( + "syscall" +) + +// fdatasync flushes written data to a file descriptor. +func fdatasync(db *DB) error { + return syscall.Fdatasync(int(db.file.Fd())) +} |