summaryrefslogtreecommitdiff
path: root/vendor/github.com/etcd-io/bbolt/boltsync_unix.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/etcd-io/bbolt/boltsync_unix.go')
-rw-r--r--vendor/github.com/etcd-io/bbolt/boltsync_unix.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/vendor/github.com/etcd-io/bbolt/boltsync_unix.go b/vendor/github.com/etcd-io/bbolt/boltsync_unix.go
new file mode 100644
index 000000000..9587afefe
--- /dev/null
+++ b/vendor/github.com/etcd-io/bbolt/boltsync_unix.go
@@ -0,0 +1,8 @@
+// +build !windows,!plan9,!linux,!openbsd
+
+package bbolt
+
+// fdatasync flushes written data to a file descriptor.
+func fdatasync(db *DB) error {
+ return db.file.Sync()
+}