5ea06115cb60413b62ffb58ffdd62786fec6a316 |
|
13-Sep-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-index: If mail_index_view is leaked, include in Panic the file:line where it was opened |
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] |
ef4d0eafab4d26bba047551db1e23ceff8aa9404 |
|
15-Jan-2014 |
Timo Sirainen <tss@iki.fi> |
lib-index: Keep track of views and transactions in linked lists.
This makes debugging easier. |
4ee00532a265bdfb38539d811fcd12d51210ac35 |
|
19-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
Array API changed: ARRAY_DEFINE(name, type) -> ARRAY(type) name
Easy way to update your existing code:
perl -i -pe 's:ARRAY_DEFINE\(([^,]+), *([^)]+)\);:ARRAY($2) $1;:' **/*.[ch] |
afd0d073a0afd1c8cf6473b4ae76919586eaa1fa |
|
13-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
lib-index: Added mail_index_view_dup_private() |
3fe9483b2b412a14493e3120751b0e99ecfe9388 |
|
14-Dec-2008 |
Timo Sirainen <tss@iki.fi> |
mail_get_flags/keywords() now returns updated values if they've been changed within transaction.
--HG--
branch : HEAD |
b6612c334604eeb27e1ca2bd804ac66dcbc2eaad |
|
21-Jun-2008 |
Timo Sirainen <tss@iki.fi> |
View syncing: Keep track of highest modseq in views. If we lose transaction
log, return all messages with higher modseq than the old highest-modseq as
having changed. This works better than the previous code which compared the
old modseq which may have already changed after the previous view sync.
Return changes based on modseq being larger than
--HG--
branch : HEAD |
f1765f773591385d513fb68e1799fd1cb4206852 |
|
15-Mar-2008 |
Timo Sirainen <tss@iki.fi> |
Keep view's map always at least up-to-date with syncing. If there have been
no expunges, the map is immediately replaced with the latest map. Before the
map may not have been updated until syncing was finished. This change is
necessary to update modseqs correctly while they're being enabled.
--HG--
branch : HEAD |
3da614c39dd29f536c485089e67839b4cf89fed3 |
|
03-Nov-2007 |
Timo Sirainen <tss@iki.fi> |
Renamed mail_index_lookup_uid_range() to mail_index_lookup_seq_range(), made
it return a bool and added mail_index_lookup_seq(). Cleaned up the code to
use these functions.
--HG--
branch : HEAD |
c25356d5978632df6203437e1953bcb29e0c736f |
|
16-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Changed .h ifdef/defines to use <NAME>_H format.
--HG--
branch : HEAD |
3b80595fcf2001cf7b2fcc6290823e38f4a142fc |
|
15-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
fsck won't fail anymore with "corrupted index", all problems are fixed.
Added mail_index_fsck_locked().
--HG--
branch : HEAD |
73b50eecfc31750a312e2f940023f522eb07178c |
|
12-Aug-2007 |
Timo Sirainen <tss@iki.fi> |
mail_index_lookup*() can't fail anymore. Changed several APIs not to return
failure anymore.
--HG--
branch : HEAD |
88187ee880b4829443e0d55ea7d145d9d5880217 |
|
12-Aug-2007 |
Timo Sirainen <tss@iki.fi> |
Removed explicit locking from views and maps. They were already locked all
the time when they were used. Because of this change several functions can
no longer fail, so they were changed to return void, and a lot of pointless
error handling was removed.
--HG--
branch : HEAD |
44c5e644cb413a6559bf2d4179cbe48f9a82f366 |
|
10-Aug-2007 |
Timo Sirainen <tss@iki.fi> |
mail_index_ext_get_reset_id() takes now map parameters. Fixed it to work
properly with transaction views.
--HG--
branch : HEAD |
5278c93bd7105c32ac7ec37f36015d5950f6cbca |
|
06-Aug-2007 |
Timo Sirainen <tss@iki.fi> |
Added mail_index_ext_get_reset_id() which returns the latest reset_id when
using transaction views.
--HG--
branch : HEAD |
3776ed607821b502468bdfd5a4533af3002125d1 |
|
01-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
Removed view->hdr. Use view->map->hdr directly.
--HG--
branch : HEAD |
14c474d9f4591c397ed0b5206af6537c7b52c924 |
|
01-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
Rewrite index lock handling.
--HG--
branch : HEAD |
b0be0bead3d6963149f7f2a9504b8ab5aced9af5 |
|
01-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
mail_index_map now contains pointer to index, so all functions taking map
parameter don't need index anymore.
--HG--
branch : HEAD |
9bc6e10d9c6d6ffb4a2ed49a3b3d2a180f2a87a3 |
|
18-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
View's counters can no longer be unreliable or broken.
--HG--
branch : HEAD |
cc6ed00c61fda24799c905e403b94a2a8c39ae5c |
|
18-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
Removed no-appends specific code that's unneeded now.
--HG--
branch : HEAD |
0d70a702dec63d22535684fec6a7247c5f153208 |
|
15-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
Removed syncs_done array. Instead track appends and expunges separately.
Also fixed handling no-appends in some situations.
--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 |
87ca2e468841829b44c09d618ac02f61a30b7a49 |
|
22-May-2007 |
Timo Sirainen <tss@iki.fi> |
mail_index_view_add_hidden_transaction() takes now a whole area parameter so
it has to be called only once for each transaction, instead of each for each
transaction record.
mail_index_view_add_synced_transaction() is no longer public.
--HG--
branch : HEAD |
46c31f64b9f0949f00b7819f45b22f2d64b2ea27 |
|
29-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
Better type safety to module_contexts arrays. Already fixed some bugs.
--HG--
branch : HEAD |
687bb904e1bb76c21a6e392f60c990486b298ea4 |
|
15-Oct-2006 |
Timo Sirainen <tss@iki.fi> |
After saving messages the mailbox wasn't synced, which caused deliver to
treat the mailbox as unsynced and not update the indexes.
--HG--
branch : HEAD |
d6badc27cd6e8d3398877b6766cb0aaeef3a7800 |
|
28-Jun-2006 |
Timo Sirainen <timo.sirainen@movial.fi> |
Beginnings of joining mail-storage API more closely to mail-index, so that
mail-index could be directly used if needed. Currently only transactions
are joined.
--HG--
branch : HEAD |
8d80659e504ffb34bb0c6a633184fece35751b18 |
|
28-Jun-2006 |
Timo Sirainen <tss@iki.fi> |
Array API redesigned to work using unions. It now provides type safety
without having to enable DEBUG, as long as the compiler supports typeof().
Its API changed a bit. It now allows directly accessing the array contents,
although that's not necessarily recommended. Changed existing array usage to
be type safe in a bit more places. Removed array_t completely. Also did
s/modifyable/modifiable/.
--HG--
branch : HEAD |
03739a8eaad2d8b34b9d87dbbe5b13c5d5dfa11a |
|
15-Jun-2006 |
Timo Sirainen <tss@iki.fi> |
We used "already synced log positions in view" array to store locations of
committed hidden transactions. They however weren't really synced, which
caused some problems. Added a separate "hidden sync log positions" array
for them which is handled differently.
--HG--
branch : HEAD |
fa5957ffc9b676bfd649fa9953e63e72ee4ebeb4 |
|
03-May-2006 |
Timo Sirainen <tss@iki.fi> |
Index header's seen/recent/deleted counters weren't always correct after
syncing a view. This caused some problems with recent SEARCH optimizations,
eg. EXPUNGE not always working.
--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 |
8afec4d1a32b78f540257a27769b372aad753384 |
|
06-Jan-2006 |
Timo Sirainen <tss@iki.fi> |
Comment updates, small cleanups and optimizations.
--HG--
branch : HEAD |
4c8b1c4aa0582c6ca43a4d1cbd210741e7fff952 |
|
06-Jan-2006 |
Timo Sirainen <tss@iki.fi> |
Converted some buffers to arrays.
--HG--
branch : HEAD |
2ddd140bcecd9f8b7f2686b419cdfaa5d5d3a9e8 |
|
05-Feb-2005 |
Timo Sirainen <tss@iki.fi> |
Keep index pointer in dummy views.
--HG--
branch : HEAD |
e8acc691a14a6d0884c5ca9aa4d8507f1e082040 |
|
22-Jan-2005 |
Timo Sirainen <tss@iki.fi> |
Instead of using separate transaction sorting code for syncing, just put the
data from transactions into a temporary transaction and read it from there.
--HG--
branch : HEAD |
df4018ae2f0a95be602f724ca70df7e0e3bd6a7d |
|
29-Nov-2004 |
Timo Sirainen <tss@iki.fi> |
Removed view->messages_count, view->hdr.messages_count is enough. Also fixes
assert crash in mail_index_bsearch_uid().
Renamed .._get_message_count() to get_messages_count() to be more
consistent.
--HG--
branch : HEAD |
b20fb5b1df9d604a7541f5118fc5b4b466d211ef |
|
24-Nov-2004 |
Timo Sirainen <tss@iki.fi> |
Changed mail_index_get_header() to return the header as return value because
it can't fail anymore.
--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 |
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 |
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 |
5a4ab3d6e108a899c8b51bebd0094a37b738d5a1 |
|
17-Oct-2004 |
Timo Sirainen <tss@iki.fi> |
Removed mmap() memory area protections. They weren't always set correctly.
Also grsec crashed with them anyway.
--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 |
5a07b37a9df398b5189c14872a600384208ab74b |
|
05-Sep-2004 |
Timo Sirainen <tss@iki.fi> |
Save extra record/header infos into index file permanently.
--HG--
branch : HEAD |
7c5b51bdf43a98e12c654ad437e0b258c5fffbc1 |
|
04-Sep-2004 |
Timo Sirainen <tss@iki.fi> |
Refcounting fixes for index mappings.
--HG--
branch : HEAD |
24fc71a693331ffe77e2b6d81c70aca6fa055e47 |
|
22-Jun-2004 |
Timo Sirainen <tss@iki.fi> |
Added mail_index_transaction_get_updated_view() which can be used to access
uncommitted messages.
--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 |
5a58037ad75b88356d82240fab2bc604de03107e |
|
23-May-2004 |
Timo Sirainen <tss@iki.fi> |
View's message count shouldn't change until after view is synced.
--HG--
branch : HEAD |
0add8c99ca65e56dbf613595fc37c41aafff3f7f |
|
01-May-2004 |
Timo Sirainen <tss@iki.fi> |
fixes
--HG--
branch : HEAD |
f99575e1d6cd251bd7b6d0654bd75b475e6a894c |
|
28-Apr-2004 |
Timo Sirainen <tss@iki.fi> |
cleanup
--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 |