aboutsummaryrefslogtreecommitdiff
path: root/sync_std.go
diff options
context:
space:
mode:
Diffstat (limited to 'sync_std.go')
-rw-r--r--sync_std.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/sync_std.go b/sync_std.go
new file mode 100644
index 0000000..d858b23
--- /dev/null
+++ b/sync_std.go
@@ -0,0 +1,10 @@
+// +build !linux
+
+package bolt
+
+import "os"
+
+// Fall back to syncing metadata too.
+func fdatasync(f *os.File) error {
+ return f.Sync()
+}