raise exception when locking the storage fails

Previously it was silently ignored, which is dangerous when multiple instances of Radicale are running.
A configuration option to disable locking was added.
This commit is contained in:
Unrud
2017-06-01 11:21:22 +02:00
parent 17d03be27b
commit a18874fc59
3 changed files with 31 additions and 8 deletions

4
config
View File

@ -101,6 +101,10 @@
# Folder for storing local collections, created if not present
#filesystem_folder = /var/lib/radicale/collections
# Lock the storage. Never start multiple instances of Radicale or edit the
# storage externally while Radicale is running if disabled.
#filesystem_locking = True
# Sync all changes to disk during requests. (This can impair performance.)
# Disabling it increases the risk of data loss, when the system crashes or
# power fails!