aboutsummaryrefslogtreecommitdiff
path: root/bucket.go
diff options
context:
space:
mode:
authorBen Johnson <benbjohnson@yahoo.com>2014-04-02 14:05:24 -0600
committerBen Johnson <benbjohnson@yahoo.com>2014-04-02 14:05:24 -0600
commit1eacfa948968c483d3232e4ca8e0a32df39f81e9 (patch)
treee16c6e9db2eea87fd3f5cb53402657720ba1cf4d /bucket.go
parentMerge pull request #109 from benbjohnson/consolidate-file-descriptors (diff)
downloaddedo-1eacfa948968c483d3232e4ca8e0a32df39f81e9.tar.gz
dedo-1eacfa948968c483d3232e4ca8e0a32df39f81e9.tar.xz
Add advisory file locking.
This commit adds advisory locking via flock() to the database file. This ensures that two separate processes cannot both open the same data file which would cause corruption. Fixes #110.
Diffstat (limited to 'bucket.go')
0 files changed, 0 insertions, 0 deletions