aboutsummaryrefslogtreecommitdiff
path: root/bolt_windows.go
diff options
context:
space:
mode:
Diffstat (limited to 'bolt_windows.go')
-rw-r--r--bolt_windows.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/bolt_windows.go b/bolt_windows.go
index 6b6e419..c8539d4 100644
--- a/bolt_windows.go
+++ b/bolt_windows.go
@@ -11,8 +11,8 @@ import (
var odirect int
// fdatasync flushes written data to a file descriptor.
-func fdatasync(f *os.File) error {
- return f.Sync()
+func fdatasync(db *DB) error {
+ return db.file.Sync()
}
// flock acquires an advisory lock on a file descriptor.