fdatasync flushes written data to a file descriptor.
(db *DB)
| 15 | |
| 16 | // fdatasync flushes written data to a file descriptor. |
| 17 | func fdatasync(db *DB) error { |
| 18 | return db.file.Sync() |
| 19 | } |
| 20 | |
| 21 | // flock acquires an advisory lock on a file descriptor. |
| 22 | func flock(db *DB, exclusive bool, timeout time.Duration) error { |