summaryrefslogtreecommitdiff
path: root/vendor/go.etcd.io/bbolt/bolt_linux.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/go.etcd.io/bbolt/bolt_linux.go')
-rw-r--r--vendor/go.etcd.io/bbolt/bolt_linux.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/vendor/go.etcd.io/bbolt/bolt_linux.go b/vendor/go.etcd.io/bbolt/bolt_linux.go
new file mode 100644
index 000000000..7707bcacf
--- /dev/null
+++ b/vendor/go.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()))
+}