diff options
Diffstat (limited to 'bolt_unix.go')
-rw-r--r-- | bolt_unix.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bolt_unix.go b/bolt_unix.go index 35dce08..cc958d4 100644 --- a/bolt_unix.go +++ b/bolt_unix.go @@ -45,7 +45,7 @@ func mmap(db *DB, sz int) error { // Truncate and fsync to ensure file size metadata is flushed. // https://github.com/boltdb/bolt/issues/284 if !db.NoGrowSync { - if err := db.file.Truncate(int64(sz)); err != nil { + if err := db.ops.Truncate(int64(sz)); err != nil { return fmt.Errorf("file resize error: %s", err) } if err := db.file.Sync(); err != nil { |