bbolt/bolt_darwin.go
Ben Johnson 00ee0da528 Add Open() options, flock timeout.
This commit changes Open() to provide an additional Options argument. The options
argument currently only has a Timeout which will cause the Open() to return
ErrTimeout if a file lock cannot be obtained in time.

Fixes #207.
2014-06-21 14:44:28 -06:00

13 lines
159 B
Go

package bolt
import (
"os"
)
var odirect int
// fdatasync flushes written data to a file descriptor.
func fdatasync(f *os.File) error {
return f.Sync()
}