bcb4e51a409d94ae670de96afb8483a4f7855294 |
|
01-Jan-2018 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2018. |
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. |
4078733e58f156dcf5c472a40eb90ee1026407ff |
|
25-Aug-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-index: Avoid opening .log.2 file if .log was reset
After a reset there's no point in trying to read the older log files.
This avoids trying to open .log.2 at least for newly created mailboxes
when trying to lookup log file sequence 1 (since due to some bug/feature
the log files start from sequence 2). |
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. |
bb444f746dc6c15a8d0af67ef81bfa48c28471d0 |
|
18-Jul-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-index: Fix mail_index_get_modification_time() to work when index isn't open.
index->filepath may be NULL after a failed index open, and it's a bit unsafe
to trust that index->log->filepath isn't NULL either. So just build the full
path from elements that are definitely non-NULL.
Also stat() only dovecot.index.log, because it's always supposed to exist.
If it doesn't, something's broken and stat()ing dovecot.index doesn't make
much sense.
This commit removes mail_transaction_log_get_mtime(), which is no longer
needed.
Fixes:
Panic: file mail-index.c: line 931 (mail_index_file_set_syscall_error): assertion failed: (filepath != NULL) |
fe5799cb926d65e895d7916d1ecacf5d09ac11e6 |
|
14-Jul-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-index: If refreshing finds dovecot.index.log gone, assume the mailbox was deleted
Don't try to recreate the log file again. It can just cause further problems.
A way to reproduce this problem with NFS when INDEX dir is specified:
* create mailbox foo, select foo, IDLE
* delete mailbox foo
--> foo's index is recreated back by IDLEing process |
df8b4fbe4287c0830aaa67d17a76bc6554725976 |
|
12-Jul-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-index: Fix compiler warning with 32bit time_t |
4394b73cacaf2c31a9b601f66b6e26a1c8f114b4 |
|
12-Jul-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-index: Track .log.2 rotation time in index header
This avoids unnecessarily stat()ing the file. Also it's a bit better
since it's tracking the actual rotation time, not the mtime of what the
.log file happened to have at the time of rotation.
The initial rotation timestamp is written only to the dovecot.index header
without going through dovecot.index.log. This works, because the
dovecot.index is written practically always after a log rotation. For the
rare cases when it doesn't happen, the dovecot.index.log.2 just gets
deleted later after the next log rotation. |
fd71a4ab1c89b6a8cf7f3864a84868b2043fcc60 |
|
12-Jul-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-index: Check .log.2 rotation only when syncing
Instead of also whenever appending transactions to .log file. This
shouldn't change the behavior much, and it's needed for the following
change to work correctly. |
2219501dc63a6fc5ab6346ea0b0df8d44a3b97d1 |
|
12-Jul-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-index: Use nfs_safe_stat() to avoid having to handle stat() ESTALE error
Slightly simplifies the code. |
5b809b97673fb0a73aa5b9d82122612d699f6c5b |
|
12-Jun-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-index: Don't ignore mail_transaction_log_move_to_memory() failure |
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. |
c85dd5fbf419770eb0728267df151edcaa3da4b9 |
|
30-Mar-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-index: Code cleanup - expand LOG_WANT_ROTATE() macro
There was no reason it had to be a macro. Also this fixes off-by-one
error when checking for log_rotate_min_size. |
2454dfa32c93c20a8522c6ed42fe057baaac9f9a |
|
01-Jan-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2017. |
efe78d3ba24fc866af1c79b9223dc0809ba26cad |
|
24-Dec-2016 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
global: Replaced all instances of memset(p, 0, sizeof(*p)) with the new i_zero() macro.
Used the following script:
C_FILES=`git ls-files *.c`
H_FILES=`git ls-files *.h`
for F in "$C_FILES $H_FILES"; do
echo "$F"
perl -p -i -e 's/safe_memset\(&\(?([^,]*)\)?,\s*0,\s*sizeof\(\g1\)\)/i_zero_safe(&$1)/g' $F
perl -p -i -e 's/safe_memset\(([^,]*),\s*0,\s*sizeof\(\*\g1\)\)/i_zero_safe($1)/g' $F
perl -p -i -e 's/memset\(&\(?([^,]*)\)?,\s*0,\s*sizeof\(\g1\)\)/i_zero(&$1)/g' $F
perl -p -i -e 's/memset\(([^,]*),\s*0,\s*sizeof\(\*\g1\)\)/i_zero($1)/g' $F
done |
7a73401fd07770bba714eefa71ba56f396ea4e6b |
|
24-Nov-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-index: Compiler warning fix |
80528a9510a2b2182466a77aa58b6e6f2bab310c |
|
24-Nov-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-index: Compiler warning fix. |
b66a207ddcfc72a634186ec7e9a82df28ffc1d4e |
|
24-Nov-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-index: Add mail_index_set_log_rotation() |
591f83c40ae8e889aded2b4a52d86e3c02948693 |
|
18-Nov-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-index: Improve errors - return reason in mail_transaction_log_refresh() |
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. |
8dfabfbc7715df1c9e2016f6a3f2db575265524b |
|
18-Nov-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-index: mail_transaction_log_find_file() - remove wrong optimization.
When opening the index, it's possible that:
process A: .log is opened with seq=1
process B: Rotates the .log and writes a new dovecot.index with
log_file_seq=2
process A: dovecot.index is opened. mail_transaction_log_view_set() now
wants to file log_file_seq=2 with mail_transaction_log_find_file(), but
because open_count==0, the .log isn't refreshed. |
d68a021c2755318e4480befc65b43ed8886932ca |
|
22-Feb-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-index: If mail_transaction_log_lock_head() locking took long, include reason string in warning |
6ded8819b9002150a95a7615e4f64f091c250464 |
|
22-Feb-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-index: Small improvements to logging the reason for long transaction log lock waits |
02c335c23bf5fa225a467c19f2c063fb0dc7b8c3 |
|
12-Jan-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: freshen copyright
git ls-files | xargs perl -p -i -e 's/(\d+)-201[0-5]/$1-2016/g;s/ (201[0-5]) Dovecot/ $1-2016 Dovecot/' |
39087f589d24f3072f220c2ed4528ee323f129ff |
|
08-Sep-2015 |
Timo Sirainen <tss@iki.fi> |
lib-index: Replaced some unlink()s with i_unlink*()s where we could.
This changes some mail_index_set_error() calls to i_error()s, but because
these unlink() failures don't actually fail the operation it doesn't matter.
In fact it may be even better that it doesn't overwrite the existing
index->error if it exists. |
7cb128dc4cae2a03a742f63ba7afee23c78e3af0 |
|
05-Jan-2015 |
Phil Carmody <phil@dovecot.fi> |
global: freshen copyright
Robomatically:
git ls-files | xargs perl -p -i -e 's/(\d+)-201[0-4]/$1-2015/g;s/ (201[0-4]) Dovecot/ $1-2015 Dovecot/'
Happy 2015 everyone!
Signed-off-by: Phil Carmody <phil@dovecot.fi> |
e1ad2d13f5f154ee975eed5c8e7f1a7823082685 |
|
20-Nov-2014 |
Timo Sirainen <tss@iki.fi> |
lib-index: If transaction log is unexpectedly recreated while it was locked, log a nice error.
Instead of just assert-crashing. |
2f8da04d700cc23fcd6630226a4866e828b761bd |
|
09-Oct-2014 |
Timo Sirainen <tss@iki.fi> |
lib-index: Include reason string in warnings about keeping transaction log locked for too long. |
da4376093d4e1b26b14ea1e945689fb7056fe0a0 |
|
09-Oct-2014 |
Timo Sirainen <tss@iki.fi> |
lib-index: Replaced some automatic transaction log unlocks with asserts.
Some earlier Dovecot versions were read-locking transaction logs and this
was useful there. But now we only do exclusive locking for the log head, so
it's an error not to explicitly unlock the files. |
a8c5a86d183db25a57bf193c06b41e092ec2e151 |
|
04-Feb-2014 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2014. |
5a580c3a38ced62d4bcc95b8ac7c4f2935b5d294 |
|
02-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
Oops :) Update copyrights to 2013 without breaking all .c files. |
cca4ba2a504d70a9fe9fee37f8433997359de52c |
|
02-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2013. |
c73415e93ecf1c699ef054d2b179b10976fa23f3 |
|
29-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
Make static analyzer happier. |
c1b9c4531186c6a7cd92d2c353273a834f8ee66f |
|
29-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
Make static analyzer happier. |
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/ |
cb78bd2ad54e402c1f53930b41e2295683bda90b |
|
25-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Replaced (void)close(fd) and close_keep_errno() with i_close_fd().
i_close_fd() preserves the errno and logs an error if the close() fails. |
7bd301fdbfefe7cef3576d19ece29c75ebe53baf |
|
24-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Make static analyzer happier. |
5f5870385cff47efd2f58e7892f251cf13761528 |
|
12-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2012. |
1be964ec6d835f95b4fdebf02add9265d58ad290 |
|
04-Sep-2011 |
Timo Sirainen <tss@iki.fi> |
lib-index: When marking index corrupted, delete also transaction log file. |
2e37d45867d081db150ab78dad303b9077aea24f |
|
04-Mar-2011 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2011. |
183bea41fa640dc8117f3eb45ff935cd81377a84 |
|
04-Mar-2011 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2011. |
1727610dbc69920b7f0d0622b4e5d7127c59093d |
|
24-Feb-2011 |
Timo Sirainen <tss@iki.fi> |
lib-index: Give better assert-crashes if view or log view isn't closed.
Earlier it should have also assert-crashed with "log->files == NULL", which
didn't make it clear enough why the files aren't NULL. |
ca0cdd1faf40551094e5d5dd44663aa89509d57c |
|
23-Nov-2010 |
Timo Sirainen <tss@iki.fi> |
lib-index: Don't try to stat() in-memory index. |
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. |
3c72b9bc9fd67b4492d6e949f54a3964dcb26344 |
|
29-Sep-2010 |
Timo Sirainen <tss@iki.fi> |
lib-index: Avoid refreshing transaction log immediately after it was opened. |
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. |
bdd7a96c363346f7c38f389791be1487ca08775b |
|
02-Sep-2010 |
Timo Sirainen <tss@iki.fi> |
lib-index: Lock timeout setting wasn't actually used in all places. |
a1db3e2071f4ca76b98f5eda9ff8429df391ac30 |
|
25-Jun-2010 |
Timo Sirainen <tss@iki.fi> |
lib-index: fsync change broke .newlock dotlock for transaction log.
--HG--
branch : HEAD |
b780aa272b742a43579cdb523cc79cc8d4521306 |
|
25-Jun-2010 |
Timo Sirainen <tss@iki.fi> |
Renamed fsync_disable to mail_fsync=optimized|always|never.
--HG--
branch : HEAD |
036626b19f14bef582f96e556913ae91b1d67881 |
|
23-Jun-2010 |
Timo Sirainen <tss@iki.fi> |
Added mail_max_lock_timeout setting.
This could be useful inside lda/lmtp protocol sections to avoid them from
spending too much time waiting for locks, since they can easily just
return "try again later".
--HG--
branch : HEAD |
cca351db187fe92ec839b601a32e77eb63207a8d |
|
31-May-2010 |
Timo Sirainen <tss@iki.fi> |
lib-index: Try to handle index directory deletion more nicely.
--HG--
branch : HEAD |
65ab5a1f8317285088c5e3a2b6e0fab2e3e81154 |
|
05-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
lib-index: Crashfix on error handling.
--HG--
branch : HEAD |
6c2ddb9f586e6392552ddfb82ab55e57fcfc4110 |
|
15-Feb-2010 |
Timo Sirainen <tss@iki.fi> |
lib-index: Added mail_index_get_modification_time().
--HG--
branch : HEAD |
e59faf65ce864fe95dc00f5d52b8323cdbd0608a |
|
25-Jan-2010 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2010.
--HG--
branch : HEAD |
6bc0f424bcdb9119d8159874cf98adfa53eefd9a |
|
09-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
lib-index: Take MAIL_INDEX_OPEN_FLAG_READONLY more seriously.
Don't do any filesystem changes to the index when it's set, even if
corrupted index files are detected.
--HG--
branch : HEAD |
adb10044e751fc1747229450f72a66c24ecb1f3f |
|
31-Jul-2009 |
Timo Sirainen <tss@iki.fi> |
index: Fix to previous cleanups.
--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 |
3ee5f5427b36ea30a01561b35f4002232db7b061 |
|
16-Jul-2009 |
Timo Sirainen <tss@iki.fi> |
Added mail_transaction_log_get_tail().
--HG--
branch : HEAD |
b3ba59e6791f799312b2339379be3ffe036a8750 |
|
16-Jun-2009 |
Timo Sirainen <tss@iki.fi> |
Transaction log dotlocking ignored mail_nfs_index and dotlock_use_excl settings.
--HG--
branch : HEAD |
6f90ce01176bd920609d9d12e6419b9ba27c1359 |
|
13-Apr-2009 |
Timo Sirainen <tss@iki.fi> |
indexes: Error handling fixes.
--HG--
branch : HEAD |
45312f52ff3a3d4c137447be4c7556500c2f8bf2 |
|
06-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2009.
--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 |
cc96c96e288721c333f0f9ab258b9202bdd1a764 |
|
16-Jun-2008 |
Timo Sirainen <tss@iki.fi> |
Rotated transaction logs weren't always unlocked, potentially causing other
processes to fail with timeout errors.
--HG--
branch : HEAD |
94aa90d2d17a7aebcda5a4193a62e80ddbb169b7 |
|
30-May-2008 |
Timo Sirainen <tss@iki.fi> |
Fixes to handling races in initial index creation.
--HG--
branch : HEAD |
eef0e47d05b58c1db6f0e0bdd86e897faadb5864 |
|
10-Mar-2008 |
Timo Sirainen <tss@iki.fi> |
Memory leak fix (by Diego Liziero)
--HG--
branch : HEAD |
76b43e4417bab52e913da39b5f5bc2a130d3f149 |
|
01-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2008.
--HG--
branch : HEAD |
04b8a90af181cc4c7959266855e8ed50a22ed413 |
|
25-Nov-2007 |
Timo Sirainen <tss@iki.fi> |
NFS cache flushing updates.
--HG--
branch : HEAD |
bc564f1d3d953cf724828322b11ae89e0f59ffc9 |
|
18-Nov-2007 |
Timo Sirainen <tss@iki.fi> |
NFS cache flushing APIs changed and backend implements it a bit differently.
Hopefully this works now more correctly.
--HG--
branch : HEAD |
4ee5b0b6c14f1f839e54e9d2c13a3c151e8caec0 |
|
16-Nov-2007 |
Timo Sirainen <tss@iki.fi> |
nfs_flush_attr_cache() doesn't take flush_dir paramter anymore. Instead the
directory is always flushed now.
--HG--
branch : HEAD |
837ea26bce080f166b2ec90d901faeff58beb22b |
|
15-Nov-2007 |
Timo Sirainen <tss@iki.fi> |
Don't flush attribute cache twice after locking transaction log.
--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 |
54cb36f32da0f2b1225a62e9e5717d521e21aa99 |
|
14-Nov-2007 |
Timo Sirainen <tss@iki.fi> |
Don't flush attribute cache unless we're locked and we really need to know
the latest changes.
--HG--
branch : HEAD |
dec85d9856c33f427a06dda01e0e50de0bc8fa7d |
|
14-Nov-2007 |
Timo Sirainen <tss@iki.fi> |
NFS attribute cache flushing fixes. nfs_flush_attr_cache() takes now
flush_dir parameter and nfs_flush_attr_cache_fd() returns FALSE if file
handle is already stale.
--HG--
branch : HEAD |
80f38fcd95e603bab7d4d09f294c55b6869a5d02 |
|
27-Oct-2007 |
Timo Sirainen <tss@iki.fi> |
Don't crash if we couldn't create transaction log.
--HG--
branch : HEAD |
8da095519878426b012058e6f331a669f327f47f |
|
21-Oct-2007 |
Timo Sirainen <tss@iki.fi> |
dotlocks: Flush NFS attribute cache only if nfs_flush setting is TRUE.
--HG--
branch : HEAD |
c680a6b35b459045e92814778908da5a93922107 |
|
22-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Keep transaction logs referenced while we know we need them. This fixes
desync errors with in-memory indexes.
--HG--
branch : HEAD |
768b7f5783c8de119d7386321e5d0c72d5c2d9f6 |
|
22-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Added mail_index_sync_have_any().
--HG--
branch : HEAD |
89a126810703c666309310d0f3189e9834d70b5b |
|
16-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Replaced my Copyright notices. The year range always ends with 2007 now.
My name was replaced with "Dovecot authors". In many cases I didn't really
even own the copyright, so this is more correct.
--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 |
3bf14402b7ec0795fbe5721b31b7e98e883d98c0 |
|
27-Aug-2007 |
Timo Sirainen <tss@iki.fi> |
If we notice that dovecot.index.log gets deleted, make sure that
dovecot.index gets written in next sync in case it was also deleted.
--HG--
branch : HEAD |
6f807c51cc3715884a3d12f25969f0b71eb5bf3b |
|
27-Aug-2007 |
Timo Sirainen <tss@iki.fi> |
If transaction log is deleted under us, recreate it immediately.
--HG--
branch : HEAD |
51b979b6414b940f04677a7e2d064be119345954 |
|
12-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
Flush NFS caches when needed if MAIL_INDEX_OPEN_FLAG_NFS_FLUSH is enabled.
--HG--
branch : HEAD |
8cd0a1a2200e65cd134d03fe3f93ec02f1746359 |
|
12-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
Fixes
--HG--
branch : HEAD |
c4ed442f1479f05f08a421767232c5559768ff92 |
|
09-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
Added asserts
--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 |
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 |
437b1d7e0a91ed93ff66a9056d0aac16ae23603c |
|
13-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
Handle mail_transaction_log_file_map() == 0 failures.
--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 |
5aec1ba81b2cb809ffb7fc1b57d946399266e174 |
|
23-May-2007 |
Timo Sirainen <tss@iki.fi> |
Combined mail_transaction_log_file_add_to_head() to
mail_transaction_log_file_add_to_list()
--HG--
branch : HEAD |
ce19e80b5a907d51a7cdf081e09699af8367dbfa |
|
16-May-2007 |
Timo Sirainen <tss@iki.fi> |
Removed mmap_no_write setting. The only OS requiring it is OpenBSD, so we're
now forcing mmap_disable=yes with it instead. dovecot.index.cache file is
the most important file to mmap(), but since this didn't work with
mmap_no_write, there's not much point in keeping special code paths for
minimal gains.
--HG--
branch : HEAD |
4ff9477e77dda2b40a2e5168ecb58dae444d97ea |
|
16-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
When marking transaction log corrupted, set indexid=0 instead of version=0.
Version setting worked too, but indexid=0 makes it log a "marked corrupted"
error message.
--HG--
branch : HEAD |
2bc03d667b58c0a8765a66c52c5718cf62a79cfb |
|
16-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
Creating initial transaction log file leaked memory, created the file
twice and caused potential locking problems.
--HG--
branch : HEAD |
8a11cda38afe409da65e367310527af7f08bd95d |
|
15-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
Don't give "Unexpected garbage at EOF" error if we don't see a full
transaction header's worth of data. It could be just that another process is
in the middle of writing the first header.
--HG--
branch : HEAD |
4d5d16ff85dacf56ddd70f76e0ccdb12b9d314d0 |
|
11-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
If write to transaction log fails, we may later need to truncate the file so
that after the write there won't be garbage after it.
--HG--
branch : HEAD |
754e435f5af539a28a64c730fa2c5c171ab305f4 |
|
08-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
If index file is corrupted, recreate transaction log file instead of trying
to reuse it.
--HG--
branch : HEAD |
2881d9617ee5004736d0b9a3d6ffea6475b51d35 |
|
07-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
Fixed last change: Don't crash now when rotating non-locked log..
--HG--
branch : HEAD |
c89506b4e646c87d99d92478d3661b723b72f1c5 |
|
07-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
Don't crash when rotating locked in-memory log file.
--HG--
branch : HEAD |
4e441ff49b1897d34a72e9287c206d7e9cfaeb34 |
|
06-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
Don't try to fsck index file in error conditions if it's not yet opened.
--HG--
branch : HEAD |
ccb77e2f63626ec46e5745ef4f38baa8e8e504fc |
|
26-Jan-2007 |
Timo Sirainen <tss@iki.fi> |
Cleanups and minor fixes
--HG--
branch : HEAD |
0c0d5f6bb9bedb4ae419249b6c898055cbfaaa08 |
|
17-Jan-2007 |
Timo Sirainen <tss@iki.fi> |
Don't rename() .log to .log.2, because it temporarily loses the log file.
Use unlink() + link() instead.
--HG--
branch : HEAD |
95a284736b8b11319a3f575ba249ba2eb7dbac1b |
|
17-Jan-2007 |
Timo Sirainen <tss@iki.fi> |
Fixes to error handling paths.
--HG--
branch : HEAD |
59428825dd01f27b5259be55e8fd8c5694d4c183 |
|
16-Jan-2007 |
Timo Sirainen <tss@iki.fi> |
And now really fix the log rotation race.
--HG--
branch : HEAD |
b529a94ab17fe69cdcfab08d7030266cb2a564e4 |
|
16-Jan-2007 |
Timo Sirainen <tss@iki.fi> |
Fixed a race condition in transaction log rotation, which could have caused
log data to be overwritten.
--HG--
branch : HEAD |
8887bf3757d51d73887dd20b1db3334d867d3817 |
|
28-Dec-2006 |
Timo Sirainen <tss@iki.fi> |
Added dotlock_use_excl setting.
--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 |
cf48e5c9975b854a23aeca883b7e689eb24430c4 |
|
17-Jun-2006 |
Timo Sirainen <tss@iki.fi> |
Handle transaction log deletions silently. Handle whole index directory
deletions silently (the most common cases anyway).
--HG--
branch : HEAD |
6143fece58262865ce89b5012b73ef08f2ad6abc |
|
25-Apr-2006 |
Timo Sirainen <timo.sirainen@movial.fi> |
Added nfs_safe_stat() to transparently work around ESTALE with stat().
--HG--
branch : HEAD |
c485524d09c650ff6e6c552129d4257ac6145a8b |
|
25-Feb-2006 |
Timo Sirainen <tss@iki.fi> |
If we reach the NFS_ESTALE_RETRY_COUNT, give an ESTALE error message as
well.
--HG--
branch : HEAD |
89b548af722113acb5d63dfffb44423cb60f91e4 |
|
25-Feb-2006 |
Timo Sirainen <tss@iki.fi> |
Renamed safe-open.* to nfs-workarounds.*, safe_open() to nfs_safe_open() and
added a new global NFS_ESTALE_RETRY_COUNT which everyone uses instead of
defining their own.
--HG--
branch : HEAD |
1e47cfede3a0b62654105daab00e97b5d660bc6b |
|
16-Feb-2006 |
Timo Sirainen <timo.sirainen@movial.fi> |
Try to handle ESTALE NFS errors the best way we can.
--HG--
branch : HEAD |
8ecbb74bc4c7f6f6145da3525941d1d0e20e67f1 |
|
05-Feb-2006 |
Timo Sirainen <tss@iki.fi> |
Removed immediate_stale_timeout and changed the stale_timeout behavior to
check both dotlock and the file it protects, and overwrite the lock file
whenever neither of them have been modified for stale_timeout seconds (ie.
also immediately if their timestamps are old enough).
--HG--
branch : HEAD |
d5cebe7f98e63d4e2822863ef2faa4971e8b3a5d |
|
14-Jan-2006 |
Timo Sirainen <tss@iki.fi> |
deinit, unref, destroy, close, free, etc. functions now take a pointer to
their data pointer, and set it to NULL. This makes double-frees less likely
to cause security holes.
--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 |
0d0451206a91e9f96e522075dce28a89adc2325d |
|
07-Jan-2006 |
Timo Sirainen <tss@iki.fi> |
Beginnings of fallbacking to in-memory indexes when write fails with "out of
disk space" error.
--HG--
branch : HEAD |
a050ca9def13949dbaa67bd6574a41c4f397ae26 |
|
06-Jan-2006 |
Timo Sirainen <tss@iki.fi> |
Handle missing/broken transaction logs better. Handle broken sync position
in index header better.
--HG--
branch : HEAD |
67b9db4e0bd93ffe24cc95f609193f6f642f6448 |
|
27-Aug-2005 |
Timo Sirainen <tss@iki.fi> |
Index creation was racy.
--HG--
branch : HEAD |
321241fc56909ccb69d77c6a11686e0c25b4c4d4 |
|
27-Aug-2005 |
Timo Sirainen <tss@iki.fi> |
When refreshing transaction log while trying to find new log file, don't
recreate the log file if it wasn't found or was corrupted. Things have
already broken at that point and recreating it could cause recurseive
mail_index_map() call with mmap_disable=yes.
Also added more assert()s to check that we don't try to recursively call
mail_index_map().
--HG--
branch : HEAD |
861329ae9b639868471c645846c61aa4225db8b7 |
|
27-Aug-2005 |
Timo Sirainen <tss@iki.fi> |
More error message fixing
--HG--
branch : HEAD |
325d4ad220bd13f6d176391d962a0e33c856a7f6 |
|
27-Aug-2005 |
Timo Sirainen <tss@iki.fi> |
Removed fcntl() text from some locking error messages, because if
lock_method=flock, it was done using flock().. Also did several s/it's/its/
in comments and one error message.
--HG--
branch : HEAD |
8204e0bff1de82284cd467edb647fe626a7a7aed |
|
10-May-2005 |
Timo Sirainen <tss@iki.fi> |
Delete transaction log.2 file if we detect it's corrupted.
--HG--
branch : HEAD |
ef6ba635caddcb8c4bc5fd1ec8b8156bbda66fec |
|
29-Apr-2005 |
Timo Sirainen <tss@iki.fi> |
Updated timeouts
--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 |
51ad0467b5401e4c3a46cc31b18c3adabbfaeac6 |
|
22-Apr-2005 |
Timo Sirainen <tss@iki.fi> |
Don't crash if dotlock replacing failed.
--HG--
branch : HEAD |
a835194f9a9dae88528367a791cbc282589f6c01 |
|
23-Apr-2005 |
Timo Sirainen <tss@iki.fi> |
s/PREFIX/SUFFIX/ for .cache and .log filename suffixes..
--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 |
a1459641213ad3b0516e1c900229ad543957554a |
|
24-Mar-2005 |
Timo Sirainen <tss@iki.fi> |
If transaction log record size is too large, mark the file corrupted.
--HG--
branch : HEAD |
fadd878cd6098f5b873c21c121209a922679dae4 |
|
05-Mar-2005 |
Timo Sirainen <tss@iki.fi> |
Several transaction log cleanups and fixes.
--HG--
branch : HEAD |
f2786c07cbd4a7a0a6a46c3e06dc4545aaf2f278 |
|
05-Mar-2005 |
Timo Sirainen <tss@iki.fi> |
We could have gone past the transaction log view's boundaries if log was
just rotated. Plus other transaction log cleanups, fixes and new asserts.
--HG--
branch : HEAD |
26bdc96aa3a3841da86c0fd0ffe34da2006a36d4 |
|
04-Mar-2005 |
Timo Sirainen <tss@iki.fi> |
hdr_size fix
--HG--
branch : HEAD |
105addcb709523868418cc3e3baad7ad3453a91e |
|
04-Mar-2005 |
Timo Sirainen <tss@iki.fi> |
Added versioning to transaction log header. Added create_stamp to its
header and it's not used to determine if the transaction log should be
rotated, not the last time the log was updated. So now if the log is over
128kB, it's rotated as soon as it's at least 5 minutes old.
--HG--
branch : HEAD |
b87a4156eca6dcf6b29c504eb0cb9be2fdb11b63 |
|
08-Feb-2005 |
Timo Sirainen <tss@iki.fi> |
Moved code into mail-transaction-log-append.c
--HG--
branch : HEAD |
faed8babca9914257f34fb2e603d74016d563b2d |
|
05-Feb-2005 |
Timo Sirainen <tss@iki.fi> |
Internal changes in how keywords are handled. struct mail_keywords isn't
automatically freed anymore, added *_keywords_free() for that.
--HG--
branch : HEAD |
e9c1b707ed266feb8e879fe7b071d7d0712dbc3d |
|
23-Jan-2005 |
Timo Sirainen <tss@iki.fi> |
optimization.
--HG--
branch : HEAD |
13c6532dc104d23061e6901783ceb1ff8872c206 |
|
16-Jan-2005 |
Timo Sirainen <tss@iki.fi> |
Changed dotlocking API.
--HG--
branch : HEAD |
460bbc67ac18cb3155708693436b87410000288d |
|
12-Jan-2005 |
Timo Sirainen <tss@iki.fi> |
Fixed crashes with keywords code when copying/saving many mails.
--HG--
branch : HEAD |
41e1c7380edda701719d8ce1fb4d465d2ec4c84d |
|
10-Jan-2005 |
Timo Sirainen <tss@iki.fi> |
Keyword fixes.
--HG--
branch : HEAD |
3302ef441d062a93fd9928223993798ee5dd77e4 |
|
29-Dec-2004 |
Timo Sirainen <tss@iki.fi> |
Don't crash if keyword update doesn't actually have any keywords set.
--HG--
branch : HEAD |
16c89b1260c9d07c01c83a9219424d3727069b2e |
|
26-Dec-2004 |
Timo Sirainen <tss@iki.fi> |
Initial support for keywords. Syncing to mbox/maildir doesn't work yet.
--HG--
branch : HEAD |
30dba1a30326e7e4885bedd7ba0960354a137938 |
|
07-Dec-2004 |
Timo Sirainen <tss@iki.fi> |
Crashfix for mmap_disable=yes.
--HG--
branch : HEAD |
2af769daebd83719ac696a440e06f6020471cec0 |
|
05-Dec-2004 |
Timo Sirainen <tss@iki.fi> |
lock_method=dotlock doesn't crash anymore while trying to modify cache file.
We didn't previously deal with any fatal errors that fcntl/flock locking
could have given but assumed that the locking succeeded.
--HG--
branch : HEAD |
323fab5c4ec38c39207bdcbfd264bc9c9d40eb05 |
|
04-Dec-2004 |
Timo Sirainen <tss@iki.fi> |
Don't crash with assert if transaction log was truncated unexpectedly.
--HG--
branch : HEAD |
70763c32af8c73ca9b4a676d532f2d24f2020c58 |
|
24-Nov-2004 |
Timo Sirainen <tss@iki.fi> |
When committing transaction, don't do index locking unless we really want to
try rotating the log file.
--HG--
branch : HEAD |
1b3bb8d39686ed24730cbc31cc9a33dc62c8c6c3 |
|
14-Nov-2004 |
Timo Sirainen <tss@iki.fi> |
Update view's header only after syncing the view. This and other changes fix
several view syncing problems and crashes.
--HG--
branch : HEAD |
d22390f33eedbd2413debabc0662dde5241b1aa6 |
|
11-Nov-2004 |
Timo Sirainen <tss@iki.fi> |
dovecot-shared file was supposed to show permissions/gid for files created
in the maildir, but it didn't work for indexes.
--HG--
branch : HEAD |
7c95b03620a03a43dd72d39608cea5fc77393ad6 |
|
11-Nov-2004 |
Timo Sirainen <tss@iki.fi> |
Allow specifying to transaction if it's external. Make mail saving
transactions external to avoid problems with uids.
--HG--
branch : HEAD |
c7d437adbbf17735c8fb6efda61e652f795978e2 |
|
07-Nov-2004 |
Timo Sirainen <tss@iki.fi> |
fsck index if transaction log is found to be corrupted.
--HG--
branch : HEAD |
6a19e109ee8c5a6f688da83a86a7f6abeb71abdd |
|
06-Nov-2004 |
Timo Sirainen <tss@iki.fi> |
Removed cache_offset from mail_index_record and changed it to use extension
instead. Added possibility to register sync and expunge handlers for
extensions. Changed the way extension resets work: all extension updates
which were committed without having seen the reset are ignored.
--HG--
branch : HEAD |
2a734f36105e33ab452d057df6bc7a2b7d9f96f0 |
|
25-Oct-2004 |
Timo Sirainen <tss@iki.fi> |
Use separate sync offsets for internal/external transactions. Pending external
transactions are committed into index at the beginning of syncing, internal
ones aren't.
--HG--
branch : HEAD |
a84990ae3a0084bd5f9e9b07d3c5d31f396d7fff |
|
24-Oct-2004 |
Timo Sirainen <tss@iki.fi> |
fix
--HG--
branch : HEAD |
d143077bd518de129b8d446fb58e003903e50867 |
|
17-Oct-2004 |
Timo Sirainen <tss@iki.fi> |
New way of handling extension introductions in transaction log.
--HG--
branch : HEAD |
f172291ed740e6af3ce3e7c9c2ef0fe1d3ad7963 |
|
17-Oct-2004 |
Timo Sirainen <tss@iki.fi> |
Write transactions into index at the beginning of syncing if there's appends
or external changes.
--HG--
branch : HEAD |
e8579686b20f2bee8468834ca221180ef1dddfc1 |
|
15-Oct-2004 |
Timo Sirainen <tss@iki.fi> |
Log syncing fixes
--HG--
branch : HEAD |
47e2df7bdfe737359f43c7fde2cd13fae5ebc1d8 |
|
11-Oct-2004 |
Timo Sirainen <tss@iki.fi> |
typofixes
--HG--
branch : HEAD |
a53cb86b4d733d9c48ee4d285bed477c80825804 |
|
10-Oct-2004 |
Timo Sirainen <tss@iki.fi> |
Replaced fcntl_locks_disable with lock_method, so it's now possible to use
flock() to lock indexes.
--HG--
branch : HEAD |
4b058f90f9e8a2c6b2eed275de4eb8cc5195a71d |
|
08-Oct-2004 |
Timo Sirainen <tss@iki.fi> |
Buffer API change: we no longer support limited sized buffers where
writes past limit wouldn't kill the process. They weren't used hardly
anywhere, they could have hidden bugs and the code for handling them was too
complex.
This also changed base64 and hex-binary APIs.
--HG--
branch : HEAD |
bbf796c17f02538058d7559bfe96d677e5b55015 |
|
03-Oct-2004 |
Timo Sirainen <tss@iki.fi> |
Index extensions can now specify record alignment, and it's possible to
resize header and records. Fixes mbox crashes with some 64bit systems.
--HG--
branch : HEAD |
7797aa2479e99aeb71057b7a2584b2cb72e4d3f8 |
|
26-Sep-2004 |
Timo Sirainen <tss@iki.fi> |
Renamed "extra record info" and variations of it to "extension" or "ext" in
short.
--HG--
branch : HEAD |
d810ebb2cc4588d11508a59bae1d1a13cd374b07 |
|
20-Sep-2004 |
Timo Sirainen <tss@iki.fi> |
type fixes
--HG--
branch : HEAD |
73e7998716853b5b7621c06aea0022dccda70ad1 |
|
12-Sep-2004 |
Timo Sirainen <tss@iki.fi> |
We didn't include extra_rec_updates at checking if transaction had changed
anything, and so they didn't necessarily get written to transaction log.
This broke mbox offsets sometimes.
--HG--
branch : HEAD |
1f193b5125de0233cfd13c4543988205894353dd |
|
11-Sep-2004 |
Timo Sirainen <tss@iki.fi> |
Don't rotate log file if it's not fully synced
--HG--
branch : HEAD |
6d73b00c262f47679ed31e17a80086b205c48a35 |
|
11-Sep-2004 |
Timo Sirainen <tss@iki.fi> |
Make sure MAIL_TRANSACTION_EXTRA_INTRO is 4 byte padded, otherwise it
crashes.
--HG--
branch : HEAD |
1aa7b3757c7c90efd468773587a3a9b256cf1dd5 |
|
11-Sep-2004 |
Timo Sirainen <tss@iki.fi> |
if there's pending cache_reset in log file make sure appended records don't
have invalid cache_offsets.
--HG--
branch : HEAD |
5a07b37a9df398b5189c14872a600384208ab74b |
|
05-Sep-2004 |
Timo Sirainen <tss@iki.fi> |
Save extra record/header infos into index file permanently.
--HG--
branch : HEAD |
1531dfe21973fccfc7547798621a1ee1b4e82577 |
|
22-Aug-2004 |
Timo Sirainen <tss@iki.fi> |
Crashfix
--HG--
branch : HEAD |
52003aab4e01b6ab9e10125193e1ca42869cf071 |
|
22-Aug-2004 |
Timo Sirainen <tss@iki.fi> |
Optimization for setting initial sync_offset from index.
--HG--
branch : HEAD |
7a027685e685fbbdb90cf7539ad4b406deaa6484 |
|
22-Aug-2004 |
Timo Sirainen <tss@iki.fi> |
Use madvise() for mmaped transaction log file.
--HG--
branch : HEAD |
a928e7efabb1672b1476e597106d4b4b81ac6f3c |
|
31-Jul-2004 |
Timo Sirainen <tss@iki.fi> |
Small cleanups.
--HG--
branch : HEAD |
6eebb8970ebf1b904e3826d712dfda4d8df1cf66 |
|
31-Jul-2004 |
Timo Sirainen <tss@iki.fi> |
removed assert
--HG--
branch : HEAD |
44ff75ca53188056ff5a3e50428e3f2078800b3c |
|
31-Jul-2004 |
Timo Sirainen <tss@iki.fi> |
Transaction log file is now read-lockless.
--HG--
branch : HEAD |
09af804b422b9d9b29b6f0532b6308be0c20a8d8 |
|
11-Jul-2004 |
Timo Sirainen <tss@iki.fi> |
Use CMP_DEV_T() macro to compare struct stat.st_dev
--HG--
branch : HEAD |
7394389230750c45b105cdefb5850c81cae8cdc0 |
|
05-Jul-2004 |
Timo Sirainen <tss@iki.fi> |
fixing crashes from last changes
--HG--
branch : HEAD |
b40f5c86794ff967e8248d45498d236a199373fe |
|
05-Jul-2004 |
Timo Sirainen <tss@iki.fi> |
more checks against using old cache_offsets
--HG--
branch : HEAD |
2ca4cb08680aebb1474d762738cf436871f095fb |
|
04-Jul-2004 |
Timo Sirainen <tss@iki.fi> |
Make sure we don't set cache_offsets to old cache files.
--HG--
branch : HEAD |
d08cce3f3ee75118cf67cc8015219d14a4d0eda5 |
|
28-Jun-2004 |
Timo Sirainen <tss@iki.fi> |
fixed some fd leaks in error conditions
--HG--
branch : HEAD |
7e94cf9d70ce9fdeccb7a85ff400b899e6386f36 |
|
24-Jun-2004 |
Timo Sirainen <tss@iki.fi> |
Record size is allowed to change between index files. This will allow adding
extensions dynamically for existing indexes.
--HG--
branch : HEAD |
fec0e90484c5f2c9da9cdc62c0897408023d4c6e |
|
20-Jun-2004 |
Timo Sirainen <tss@iki.fi> |
assert crashfixes
--HG--
branch : HEAD |
74d48e8b8c4ac1ec7a3b2a9fc4b7b5176aec01e8 |
|
19-Jun-2004 |
Timo Sirainen <tss@iki.fi> |
cache file fixes
--HG--
branch : HEAD |
56f45b3f3ae20e5c933701f4657dda5ef1916855 |
|
19-Jun-2004 |
Timo Sirainen <tss@iki.fi> |
Several fixes and cleanups to cache file code, still badly broken
--HG--
branch : HEAD |
2fb0f5af2de223c16c72aa142dede66ce1de073b |
|
20-Jun-2004 |
Timo Sirainen <tss@iki.fi> |
bugfix for extra-records change
--HG--
branch : HEAD |
024815ea2ffdda9ea79919f18e865663977f73ea |
|
14-Jun-2004 |
Timo Sirainen <tss@iki.fi> |
Fixes for extra_records
--HG--
branch : HEAD |
1175f27441385a7011629f295f42708f9a3a4ffc |
|
14-Jun-2004 |
Timo Sirainen <tss@iki.fi> |
Modifying extra_records should work now.
--HG--
branch : HEAD |
8e7da21696c9f8a6d5e601243fb6172ec85d47b2 |
|
14-Jun-2004 |
Timo Sirainen <tss@iki.fi> |
Added support for per-index sized mail_index_record.
--HG--
branch : HEAD |
97d1089f42026a767dc24a5eed1d34fceb1f71a1 |
|
31-May-2004 |
Timo Sirainen <tss@iki.fi> |
whops, wrong change. immediate_stale_timeout 2min -> 5min
--HG--
branch : HEAD |
0e1c47762c01303e61f619369c5741e390720686 |
|
31-May-2004 |
Timo Sirainen <tss@iki.fi> |
Grow log_dotlock_timeout to 120sec
--HG--
branch : HEAD |
8830fab191cab8440281eb641dfdd93974b2933b |
|
30-May-2004 |
Timo Sirainen <tss@iki.fi> |
fixes
--HG--
branch : HEAD |
e687badfdd7f4001e9a89a80a2c4a79ec4bafc8d |
|
28-May-2004 |
Timo Sirainen <tss@iki.fi> |
Don't complain about transaction log indexid changes when rebuilding index.
--HG--
branch : HEAD |
e06c0b65c16ccce69bbee009ead14d7d3d17a256 |
|
24-May-2004 |
Timo Sirainen <tss@iki.fi> |
Index header changes now go through transaction log. Removed the kludgy
parameters for mail_index_sync_end(). Removed code duplication of syncing
index root mapping and view mapping. Some fixes to handling uidvalidity and
nextuid in syncing.
--HG--
branch : HEAD |
7f393c5a2c9e8b49834bf258cae4715de9efe5c5 |
|
23-May-2004 |
Timo Sirainen <tss@iki.fi> |
more debugging info to log
--HG--
branch : HEAD |
659fe5d24825b160cae512538088020d97a60239 |
|
22-May-2004 |
Timo Sirainen <tss@iki.fi> |
Transaction log contains only UIDs now, no more sequences which just mess up
everything.
--HG--
branch : HEAD |
2608cf201e72db4e21e09854cd0b79b0c06e94ba |
|
17-May-2004 |
Timo Sirainen <tss@iki.fi> |
Dotlocking: Don't leave the log infinitely locked after rotation
--HG--
branch : HEAD |
7b91a93473c88679b7d44c97ec99f915221b3f94 |
|
17-May-2004 |
Timo Sirainen <tss@iki.fi> |
fixes
--HG--
branch : HEAD |
1520667f4fecb09505fafb70d5e670c0f03f245f |
|
16-May-2004 |
Timo Sirainen <tss@iki.fi> |
more fixes (still not right?)
--HG--
branch : HEAD |
23d8927a1c5df837691ecfddcbb59a0487b2688b |
|
15-May-2004 |
Timo Sirainen <tss@iki.fi> |
bugfixes
--HG--
branch : HEAD |
736d239e2fd043d9f6b35bf49e9a07e08ca429c9 |
|
10-May-2004 |
Timo Sirainen <tss@iki.fi> |
fix
--HG--
branch : HEAD |
8a3d609fdd84f5938c82e8e7eeb84a24ab41b317 |
|
10-May-2004 |
Timo Sirainen <tss@iki.fi> |
When committing with no changes, don't try to sync them later.
--HG--
branch : HEAD |
5edf6ed84c39ef90fb1b38a662b66567eb11ee8e |
|
10-May-2004 |
Timo Sirainen <tss@iki.fi> |
some minor fixes
--HG--
branch : HEAD |
5d04f56a6d953287f82dc20ac2f307d30deebf76 |
|
10-May-2004 |
Timo Sirainen <tss@iki.fi> |
some fixes
--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 |
ee246b46953e4b94b2f22e093373674fa9155500 |
|
03-May-2004 |
Timo Sirainen <tss@iki.fi> |
memory leak fixes
--HG--
branch : HEAD |
87d144c4ae83fe0959ede82b39a1323fbae081b1 |
|
03-May-2004 |
Timo Sirainen <tss@iki.fi> |
mail_transaction_log_append() - return seq/offset even if we didn't write
anything
--HG--
branch : HEAD |
ed1f14af0d426b5550521a58fc414d130aa14172 |
|
02-May-2004 |
Timo Sirainen <tss@iki.fi> |
Don't crash in assert() with corrupted index file.
--HG--
branch : HEAD |
93b29720c5141f787bd1861796867e4595c9d084 |
|
01-May-2004 |
Timo Sirainen <tss@iki.fi> |
handle losing index file
--HG--
branch : HEAD |
7888a9d2008eab9985096c46e1da9ee985c22a2a |
|
01-May-2004 |
Timo Sirainen <tss@iki.fi> |
automatically fix broken/missing transaction log files on the fly
--HG--
branch : HEAD |
0add8c99ca65e56dbf613595fc37c41aafff3f7f |
|
01-May-2004 |
Timo Sirainen <tss@iki.fi> |
fixes
--HG--
branch : HEAD |
62e8c0bf11307adfa9e8bbe368f6771d3810e7cc |
|
29-Apr-2004 |
Timo Sirainen <tss@iki.fi> |
Ignore new mail appends if they're already in transaction log.
--HG--
branch : HEAD |
58b8eb7600dad413e5ae4f638cce5ff778aad34d |
|
29-Apr-2004 |
Timo Sirainen <tss@iki.fi> |
assert
--HG--
branch : HEAD |
40ef82c46f6652412b068ebcdac7c3e74840a284 |
|
29-Apr-2004 |
Timo Sirainen <tss@iki.fi> |
Don't modify index file when creating new transaction log.
--HG--
branch : HEAD |
f1e1d821d93e4a1dc6ed8f23febde868b5d64cd5 |
|
29-Apr-2004 |
Timo Sirainen <tss@iki.fi> |
fixes for mmap_disable
--HG--
branch : HEAD |
98fb9437058e007980df344e55c592105e7cf6df |
|
28-Apr-2004 |
Timo Sirainen <tss@iki.fi> |
fix
--HG--
branch : HEAD |
d1727ed9c2ed8c520afa35cf0302fd94f7dfd723 |
|
28-Apr-2004 |
Timo Sirainen <tss@iki.fi> |
some more locking fixes
--HG--
branch : HEAD |
5c1a8aee989af87bddefd71e2aa83aa2bd695155 |
|
28-Apr-2004 |
Timo Sirainen <tss@iki.fi> |
Locking changes. bugfixes.
--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 |
c1d45cada20777e1973579d40d0ebe43f89bb053 |
|
28-Apr-2004 |
Timo Sirainen <tss@iki.fi> |
locking fixes, mmap_disable=yes fixes
--HG--
branch : HEAD |
31ddc75584c5cde53d2e78a737587f2e7fdcb0d2 |
|
28-Apr-2004 |
Timo Sirainen <tss@iki.fi> |
Forced locking to be right with mprotect()ing index file. Support for
disabling mmap for indexes, and disabling just mmap+write().
--HG--
branch : HEAD |
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834 |
|
27-Apr-2004 |
Timo Sirainen <tss@iki.fi> |
importing new index code. mbox still broken.
--HG--
branch : HEAD |