f27a51cd9a66685b63357de25e733c37eb03b07c |
|
07-Feb-2018 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: Add file_lock_from_dotlock()
The dotlock creation requires various settings, so the file-lock.h API can't
easily be used to create it. But once created, it's simpler to keep all lock
types in the same struct file_lock, which can be unlocked/freed once
finished. |
3581ece16eb740a5003c4c11dd3c7d02839a24a4 |
|
13-Sep-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: file_lock_set_unlink_on_free() - Avoid unlink() if another process is waiting on the lock |
65f9a90ef5ed4c86fb9e44f22e472509126ae9f5 |
|
28-Jun-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: Add file_lock_set_close_on_free() |
68332e3a49dea15013aa8f4daa16b5e07eb3d543 |
|
28-Jun-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: Add file_lock_set_unlink_on_free() |
d8d93ecd89efa7c84a3a21264a550449619f715b |
|
28-Jun-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: Add file_lock_set_path() |
f1243d7759a3dddc1c3eaf7eda8a153c8ef0112b |
|
28-Jun-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: Add file_lock_get_path()
This allows getting the file path from the lock without having to preserve
it separately. |
f83fd83f9c6708d198748e714aa947cad9362c02 |
|
24-Oct-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: Add FILE_LOCK_SLOW_WARNING_MSECS environment.
Log a warning if any locking takes longer than the specified number of
milliseconds. This can be enabled globally with:
import_environment = $import_environment FILE_LOCK_SLOW_WARNING_MSECS=1000 |
4a7e04d325db0c03f575f98f045246fceb0de279 |
|
23-Aug-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: Track how much time has been spent on waiting for locks. |
cac6b8b1a2bcf672fe43d3fb91a7278877f8cf09 |
|
24-May-2015 |
Timo Sirainen <tss@iki.fi> |
lib: file_lock_try_update() comment updated.
It should possibly be removed entirely from the API. |
1107c86ff3fa4f29796c2e76134b78d0b4a0db50 |
|
09-Oct-2014 |
Timo Sirainen <tss@iki.fi> |
lib: Added file_lock_find() to find which process has a file locked. |
0dc7891233a973829f00371b27810f849b987c66 |
|
25-Sep-2014 |
Timo Sirainen <tss@iki.fi> |
lib: Added file_wait_lock_error() and file_try_lock_error() |
8c8f7ac580b661aee3d8b8dd37df4a9b41c77000 |
|
09-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
Added file_lock_method_to_str() |
6e77746e501c2b45850b1c530836058ed75e09ee |
|
12-Oct-2008 |
Timo Sirainen <tss@iki.fi> |
Moved file lock type string parsing code to file-lock.c
--HG--
branch : HEAD |
c25356d5978632df6203437e1953bcb29e0c736f |
|
16-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Changed .h ifdef/defines to use <NAME>_H format.
--HG--
branch : HEAD |
d9fdacd5fb3e07997e5c389739d2054f0c8441d8 |
|
06-Dec-2006 |
Timo Sirainen <tss@iki.fi> |
Lock handling changes. Everything goes through file-lock API now and there's
only a single enum listing the different lock methods. This change exposed
some unneeded (or possibly even wrong?) unlock calls in index file handling
which were fixed.
--HG--
branch : HEAD |
f923659c0e5298263d80622c99f4dc4132b4675b |
|
11-Jan-2003 |
Timo Sirainen <tss@iki.fi> |
Naming change for function typedefs.
--HG--
branch : HEAD |
c2bb1764c359ce85a7f7f789ead11dd613ff9769 |
|
25-Nov-2002 |
Timo Sirainen <tss@iki.fi> |
Locking changes triggered a bit larger cleanup :) If we have to wait for a
lock longer, the client is now notified about it every 30 seconds. Also if
mailbox opening fails because of lock timeout, we won't overwrite the index
anymore. Finally user gets a clear error message about lock timeout instead
of "internal error".
--HG--
branch : HEAD |
9e86ad9eb313004cd4c8b5427daeb4c241b57af6 |
|
23-Oct-2002 |
Timo Sirainen <tss@iki.fi> |
file_wait_lock() now takes timeout-parameter so one badly behaving process
won't start creating tons of lock-waiting processes.
--HG--
branch : HEAD |
02b32cf39a098edf60981fc228e4b034f11f3b90 |
|
14-Sep-2002 |
Timo Sirainen <tss@iki.fi> |
lots of cleanups. also index/datafile is now capable of staying in memory,
as long as it's noticed while opening the index.
--HG--
branch : HEAD |