19557f192d37cd54a1a090a8a26d9d47265e4413 |
|
01-Nov-2017 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
global: Fix spelling mistakes in comments
Original work by @andreasschulze and @jsoref |
7ce557e379d2df8c4c3c5639f251881f0a55f3b5 |
|
12-Oct-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-index: Replace mail_index_set_log_rotation() with mail_index_set_optimization_settings()
This allows more easily adding optimization-related settings. |
5e03576913a0030de6f8d22c79e353a968a6a35f |
|
11-Aug-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-index: Fix wrong mail_index_modseq_header automatically
It happens only on the next sync, although that isn't actually guaranteed to
happen. Still, it happens almost always so this should be good enough. |
5b809b97673fb0a73aa5b9d82122612d699f6c5b |
|
12-Jun-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-index: Don't ignore mail_transaction_log_move_to_memory() failure |
a0c8af555ec481ab12c2a99518cf7b20debd1627 |
|
20-May-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-index: mail_transaction_log_file_get_highest_modseq_at() - return error string
This can help figuring out why some error happened when more context is
provided in the caller's error messages. |
ce9d23c7c1e621398d2572a1d95171136f7ef6a2 |
|
20-May-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-index: mail_transaction_log_file_map() - return reason/error string
This can help figuring out why some error happened when more context is
provided in the caller's error messages. |
92dab926b2f2270057b40a907a00cf8eb2309ed6 |
|
02-Apr-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-index: Don't increase modseq for backend/dirty flag changes
These flags are used only for internal changes and they shouldn't be
triggering any modseq changes.
To avoid modseqs from unexpectedly shrinking, the new modseq counting
behavior is enabled only for newly rotated transaction log files that have
a new minor_version. |
b66a207ddcfc72a634186ec7e9a82df28ffc1d4e |
|
24-Nov-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-index: Add mail_index_set_log_rotation() |
52d2b356e3ddb4e59ee09c10d47add9d3280284b |
|
21-Nov-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
lib-index: Limit mmap errors in txn log file to 1/s |
c0d1bfc45e224251cb549de8d8804861e8acb517 |
|
18-Nov-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-index: Improve errors - return reason in mail_transaction_log_file_open() |
6321d9d33937c7fc13a8ff04c220a9e377efeeb8 |
|
18-Nov-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-index: Add more information to "Missing middle file" error. |
0dffa25d211be541ee3c953b23566a1a990789df |
|
06-Jun-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: unsigned int:1 -> bool:1
perl -i -pe 's/unsigned int ([^,:;]+):1;/bool $1:1;/' **/*.[ch] |
6ded8819b9002150a95a7615e4f64f091c250464 |
|
22-Feb-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-index: Small improvements to logging the reason for long transaction log lock waits |
2f8da04d700cc23fcd6630226a4866e828b761bd |
|
09-Oct-2014 |
Timo Sirainen <tss@iki.fi> |
lib-index: Include reason string in warnings about keeping transaction log locked for too long. |
e307c8202280c6db60a0615381f18cac33e46a53 |
|
09-Oct-2014 |
Timo Sirainen <tss@iki.fi> |
lib-index: Moved MAIL_TRANSACTION_LOG_LOCK_WARN_SECS as part of public API. |
b222354c9553cd60b7dd418885e10c0473f73985 |
|
18-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
lib-index: Handle better race condition there dovecot.index.log and .log.2 are the same link. |
b886e3df92063a741201d5c37c4d52412ede2269 |
|
12-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
lib-index: Log a warning if locking transaction log takes longer than 30 secs. |
97cb20eb77d486ef67eac50567e3080faca025c1 |
|
03-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
Typofix: s/TRANSCATION/TRANSACTION/ |
863ea896fb31a16d1baec31e57650243b5547db6 |
|
25-Mar-2011 |
Timo Sirainen <tss@iki.fi> |
lib-index: Delete dovecot.index.log.2 files after 2 days, not after 30 mins. |
07e80e04c8876b6bf3f95266f48b41e1a681e445 |
|
06-Oct-2010 |
Timo Sirainen <tss@iki.fi> |
lib-index: Avoid unnecessary pread()s at end of transaction log file.
If we've already read until EOF while the file has been locked, there's no
need to do it again. Previously this worked while index was being synced,
but not while committing a transaction. |
96975ce7b258b4ed09040bd1dc9a453106dee581 |
|
29-Sep-2010 |
Timo Sirainen <tss@iki.fi> |
lib-index: Don't waste time on every mailbox open checking if .log.2 should be deleted. |
d9fda7e3a0fa5551547ac3e3054b837fc77f4bfb |
|
23-Sep-2010 |
Timo Sirainen <tss@iki.fi> |
lib-index: Log a warning if transaction log lock is kept over 3 minutes. |
bdd7a96c363346f7c38f389791be1487ca08775b |
|
02-Sep-2010 |
Timo Sirainen <tss@iki.fi> |
lib-index: Lock timeout setting wasn't actually used in all places. |
b780aa272b742a43579cdb523cc79cc8d4521306 |
|
25-Jun-2010 |
Timo Sirainen <tss@iki.fi> |
Renamed fsync_disable to mail_fsync=optimized|always|never.
--HG--
branch : HEAD |
8872e5c991430f96138a46e36b7f3c2c40d8e5c2 |
|
09-Feb-2010 |
Timo Sirainen <tss@iki.fi> |
lib-index: Added support for undeleting a deleted index.
--HG--
branch : HEAD |
651fc0f1e43fef3e02e0e7b5f498973b05f641d7 |
|
07-Feb-2010 |
Timo Sirainen <tss@iki.fi> |
Added support for marking mailbox index deleted. Don't allow any changes after that.
This is going to help with race conditions when deleting mailboxes.
--HG--
branch : HEAD |
029cfcdce65b284d5230adf1c920a5f526b03b5c |
|
31-Jul-2009 |
Timo Sirainen <tss@iki.fi> |
index: Code cleanups.
--HG--
branch : HEAD |
66ecc94150cbce23aad3240135e0782e0a74d479 |
|
30-Jul-2009 |
Timo Sirainen <tss@iki.fi> |
index: Removed duplication of mail_index_open_flags from struct mail_index.
--HG--
branch : HEAD |
ad48319996942463675b53877092ab7e13a7a75a |
|
29-Jul-2009 |
Timo Sirainen <tss@iki.fi> |
Added ability to specify message's minimum modseq value.
--HG--
branch : HEAD |
8e361d2906b0e44f7175a20981f8d2280645b58b |
|
14-Jul-2009 |
Timo Sirainen <tss@iki.fi> |
buffer_create_[const_]data() API change: Take buffer_t as parameter instead of allocating it.
--HG--
branch : HEAD |
4d4d585520538a752e9f0a4a1c019a2918f52e56 |
|
17-May-2009 |
Timo Sirainen <tss@iki.fi> |
Added mail_index_unlink().
--HG--
branch : HEAD |
25c22e54d1071d120641e9eecd0023e7373e65ff |
|
18-Oct-2008 |
Timo Sirainen <tss@iki.fi> |
Fixes to handling "out of disk space/quota" write failures.
--HG--
branch : HEAD |
88b8aea03a24ef7a9efc30399080487b7eb03537 |
|
31-Aug-2008 |
Timo Sirainen <tss@iki.fi> |
Don't give bogus "log_file_tail_offset shrank" errors.
--HG--
branch : HEAD |
85144b5f0bc763de14c7d87291a90ef74ac241a2 |
|
21-Jun-2008 |
Timo Sirainen <tss@iki.fi> |
Keep modseqs as 1 until the first modseq ext intro record enables them.
Performance should be better again when modseqs are disabled.
--HG--
branch : HEAD |
95a1a5195d56f3cf5d1e529aad668f87ad3b979b |
|
11-Jun-2008 |
Timo Sirainen <tss@iki.fi> |
Modseqs are no longer calculated from transaction log sequence + offset.
Now they begin from 1 and each "visible" transaction increases it by one.
--HG--
branch : HEAD |
f537e7efaec891d6b3320ca94331d09ca8c4a4db |
|
15-Nov-2007 |
Timo Sirainen <tss@iki.fi> |
Keep better track of when we need to flush NFS attribute caches.
--HG--
branch : HEAD |
43d32cbe60fdaef2699d99f1ca259053e9350411 |
|
16-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Renamed __attr_*__ to ATTR_*. Renamed __attrs_used__ to ATTRS_DEFINED.
--HG--
branch : HEAD |
c25356d5978632df6203437e1953bcb29e0c736f |
|
16-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Changed .h ifdef/defines to use <NAME>_H format.
--HG--
branch : HEAD |
cc833a7a4e2258afdc834ace4bfe6579820a1df3 |
|
09-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Replaced MAIL_INDEX_LOCK_SECS usage with cache/index/log specific defines
which are common with dotlocks.
--HG--
branch : HEAD |
471e447023ab73a73f0f78da2afc0c55905330dd |
|
03-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
Delete over 30 minutes old .log.2 files when opening indexes.
--HG--
branch : HEAD |
ae8817f05005f57bba32479a610b52d083e2b6eb |
|
01-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
Added support for resetting index.
--HG--
branch : HEAD |
2d49f150b4bce6f2f59a84e268e4777901c3e42c |
|
28-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
Handle indexid changes better.
--HG--
branch : HEAD |
366eb7178f2c90d97134e0c2d1958f93fcdaba12 |
|
27-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
Removed debug #defines and changed log rotation size defaults.
--HG--
branch : HEAD |
51795bfe9d05d92fe942cb451aec2b9d16d32a11 |
|
15-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
int/ext/mailbox sync offset changes: Combined mailbox and int offsets to
"tail" offset and renamed ext offset to "head". This makes it clearer how
they're supposed to be used.
--HG--
branch : HEAD |
2e99f3f3bb35715ce5e0a75a2f2a9bac3ab4224b |
|
13-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
Fixes to mail_transaction_log_file_map() error handling.
--HG--
branch : HEAD |
902222fb0928d1701f20a384b73f327b1d9a15dd |
|
13-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
mail_transaction_log_move_to_memory() can't fail anymore. Moved the code to
-log-file.c.
--HG--
branch : HEAD |
2a6af811ea3de3cf9e2f15e446674dd21b0705f3 |
|
11-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
Initial commit for major index file code cleanup.
- dovecot.index file isn't anymore required to be updated when syncing.
- Getting the latest index file mapping is now done always by reading
dovecot.index and then reading the latest changes from dovecot.index.log.
- mmap()ing dovecot.index file is slower than reading it, so it's not
currently done unless the file is at 256kB. This may change though.
- Some things are still broken.
--HG--
branch : HEAD |
4bc96ba6f1d67a90a75fa131bcd2cd508ea5a05a |
|
11-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
Moved mail transaction log file related code to its own file.
--HG--
branch : HEAD |
7e235b3a5f622813121cd18f351e036650aaf8f8 |
|
11-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
If transaction log grows larger than 1MB, rotate it even if it was created
less than 5 minutes ago.
--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 |
bbce20cb4e5739e9a06058cf8ee1f38a7f6884f6 |
|
18-Nov-2006 |
Timo Sirainen <tss@iki.fi> |
Reference counting fixes. Fixes an assert crash when closing the index.
--HG--
branch : HEAD |
45e62043058738e294f89504c319d852e25943cc |
|
12-Nov-2006 |
Timo Sirainen <tss@iki.fi> |
Code cleanup
--HG--
branch : HEAD |
37598dd7a0613a03b12170c450b53c70f2b3d438 |
|
08-Nov-2006 |
Timo Sirainen <tss@iki.fi> |
Don't leak opened .log.2 transaction logs.
--HG--
branch : HEAD |
6ef7e31619edfaa17ed044b45861d106a86191ef |
|
13-Jan-2006 |
Timo Sirainen <tss@iki.fi> |
Added "bool" type and changed all ints that were used as booleans to bool.
--HG--
branch : HEAD |
6eb30032b4a50c383dea4c9c74342d906de6ad36 |
|
26-Apr-2005 |
Timo Sirainen <tss@iki.fi> |
Minor error checking fixes.
--HG--
branch : HEAD |
fc7b17677ac1a5fa3f7fe13d5ef7dcfea8d9b4a1 |
|
22-Apr-2005 |
Timo Sirainen <tss@iki.fi> |
index.log file is now rotated to .index.log.2 file. When log file is
missing, it's used if the wanted log is in it.
--HG--
branch : HEAD |
4b231ca0bbe3b536acbd350101e183441ce0247a |
|
29-Mar-2005 |
Timo Sirainen <tss@iki.fi> |
In-memory indexes work again. Just pass dir as NULL to mail_index_alloc().
--HG--
branch : HEAD |
fadd878cd6098f5b873c21c121209a922679dae4 |
|
05-Mar-2005 |
Timo Sirainen <tss@iki.fi> |
Several transaction log cleanups and fixes.
--HG--
branch : HEAD |
b87a4156eca6dcf6b29c504eb0cb9be2fdb11b63 |
|
08-Feb-2005 |
Timo Sirainen <tss@iki.fi> |
Moved code into mail-transaction-log-append.c
--HG--
branch : HEAD |
13c6532dc104d23061e6901783ceb1ff8872c206 |
|
16-Jan-2005 |
Timo Sirainen <tss@iki.fi> |
Changed dotlocking API.
--HG--
branch : HEAD |
44ff75ca53188056ff5a3e50428e3f2078800b3c |
|
31-Jul-2004 |
Timo Sirainen <tss@iki.fi> |
Transaction log file is now read-lockless.
--HG--
branch : HEAD |
55a210942dc7da58b2fd0b11bed8da6b030af5c1 |
|
04-May-2004 |
Timo Sirainen <tss@iki.fi> |
Don't rotate transaction log too often
--HG--
branch : HEAD |
d5960ce1c0adda5c9e259bc429123ebc29c60bae |
|
04-May-2004 |
Timo Sirainen <tss@iki.fi> |
file_dotlock_open/delete/replace now has lock_suffix parameter. NULL
defaults to ".lock".
Fixed dotlocking transaction log.
--HG--
branch : HEAD |
f1e1d821d93e4a1dc6ed8f23febde868b5d64cd5 |
|
29-Apr-2004 |
Timo Sirainen <tss@iki.fi> |
fixes for mmap_disable
--HG--
branch : HEAD |
18398a5d21c88cbb34c601c6b6c1f9dea502e1ca |
|
28-Apr-2004 |
Timo Sirainen <tss@iki.fi> |
Added fcntl_lock_disable setting to allow indexes to work with NFS. Some
other locking fixes.
--HG--
branch : HEAD |
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834 |
|
27-Apr-2004 |
Timo Sirainen <tss@iki.fi> |
importing new index code. mbox still broken.
--HG--
branch : HEAD |