diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2014-04-02 14:05:24 -0600 |
---|---|---|
committer | Ben Johnson <benbjohnson@yahoo.com> | 2014-04-02 14:05:24 -0600 |
commit | 1eacfa948968c483d3232e4ca8e0a32df39f81e9 (patch) | |
tree | e16c6e9db2eea87fd3f5cb53402657720ba1cf4d /db_test.go | |
parent | Merge pull request #109 from benbjohnson/consolidate-file-descriptors (diff) | |
download | dedo-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 'db_test.go')
0 files changed, 0 insertions, 0 deletions