aboutsummaryrefslogtreecommitdiff
path: root/bolt_windows.go
diff options
context:
space:
mode:
authorsasha-s <sasha@scaledinference.com>2015-05-18 11:07:12 -0700
committersasha-s <sasha@scaledinference.com>2015-05-18 11:07:19 -0700
commitfda75748b51d0dade234b5f6438bc8a2f8d71d23 (patch)
tree095326a5e2cc23390bde515ef01ce02d5b6d6b3f /bolt_windows.go
parentopen read-only databases in read-only mode (diff)
downloaddedo-fda75748b51d0dade234b5f6438bc8a2f8d71d23.tar.gz
dedo-fda75748b51d0dade234b5f6438bc8a2f8d71d23.tar.xz
use a shared lock in read-only mode
https://github.com/boltdb/bolt/pull/371#issuecomment-103119486
Diffstat (limited to 'bolt_windows.go')
-rw-r--r--bolt_windows.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/bolt_windows.go b/bolt_windows.go
index cfece39..783b633 100644
--- a/bolt_windows.go
+++ b/bolt_windows.go
@@ -16,7 +16,7 @@ func fdatasync(db *DB) error {
}
// flock acquires an advisory lock on a file descriptor.
-func flock(f *os.File, _ time.Duration) error {
+func flock(f *os.File, _ bool, _ time.Duration) error {
return nil
}