bcb4e51a409d94ae670de96afb8483a4f7855294 |
|
01-Jan-2018 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2018. |
c147bff818798a979d93537f72f5c1f68f5d5ba8 |
|
24-Nov-2017 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
global: Use t_buffer_create
sed -i -e 's/buffer_create_dynamic(pool_datastack_create(), */t_buffer_create(/g' |
52b52b5f9e5d705f068cf38c4fd0e10931c776d9 |
|
06-Jun-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-index: Fix reset_id handling in mail_cache_get_missing_reason() cache
Broken by bd897f82a5d9b00ba256b462d2056c2dc7df257c |
bd897f82a5d9b00ba256b462d2056c2dc7df257c |
|
05-Jun-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-index: Add cache to mail_cache_get_missing_reason()
This avoids excessive CPU usage when it's called in a loop for many mails. |
adef31eb09ce4092968afc81680524ffb626b21e |
|
05-Jun-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-index: mail_cache_get_missing_reason() - Minor code cleanup |
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 |
6d404348751c19ac37cfb42375abdd3c5f298e30 |
|
24-Nov-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Code cleanup - avoid passing NULL to functions with non-null parameter |
96a4e105f7c990a786af909bf710eb6431c1f227 |
|
23-Oct-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-index: Fix potential assert-crash when reading cache
Fixes:
Panic: file mail-cache-lookup.c: line 258 (mail_cache_lookup_iter_next): assertion failed: (ctx->offset != 0)
Broken by d33fc6c584718efd46159e1d8f46488b9dfc66f5 |
feda872009892455c8f0a3f7f4a6ea24141d1c52 |
|
03-Aug-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-index: Fixed debug logging. |
99d5f0bf1eea2b78eac309fcd50aa6ba6b3de96b |
|
03-Aug-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-index: Added mail_cache_get_missing_reason() |
f6d5c9fbdac9af5c4d3f467f828dc6f056309d5e |
|
18-May-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
Removed buffer_reset().
It was just a wrapper to buffer_set_used_size() and its comment was a bit
confusing (or obsolete), since it wasn't actually immediately zeroing out
the buffer. |
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/' |
814bf67459ad405a157af0b8940602024d7fadfe |
|
23-Sep-2015 |
Teemu Huovila <teemu.huovila@dovecot.fi> |
Remove now-unnecessary direct stdlib.h #includes. |
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> |
45324f1eafa565dbc65e4dd335de9507dead55e6 |
|
25-Sep-2014 |
Timo Sirainen <tss@iki.fi> |
Mark more memory pools as growing |
a8c5a86d183db25a57bf193c06b41e092ec2e151 |
|
04-Feb-2014 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2014. |
91496fd60a7980f4ebdf93cbb099b9db198a0e74 |
|
16-Nov-2013 |
Timo Sirainen <tss@iki.fi> |
lib-index: Support a small in-memory cache even with INDEX=MEMORY |
6d8082441e480cf481bfb3f935d17fc419d789c6 |
|
29-May-2013 |
Timo Sirainen <tss@iki.fi> |
lib-index: Fixed mail_cache_lookup_headers() when fields were still in memory buffer. |
d33fc6c584718efd46159e1d8f46488b9dfc66f5 |
|
26-May-2013 |
Timo Sirainen <tss@iki.fi> |
lib-index: mail_cache_lookup*() can now return fields recently added with mail_cache_add()
Previously it was returning them if they had already been written to
dovecot.index.cache, but not if they were still in the in-memory buffer.
This avoids caching/parsing the same field multiple times when messages
aren't accessed in ascending order (e.g. when sorting messages). |
8ae72ad7d0c69e972cfa65d1e2ce4e3e9a8b765c |
|
24-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
Replaced all -1U and (unsigned int)-1 with UINT_MAX.
It's somewhat clearer this way. Also clang's -fsanitize=integer gives
runtime errors about -1U (but not about explicit casts, so no need to change
(type)-1 casts). |
03860f6dd70abfa2551a846e77a5c41cb40dc141 |
|
16-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
lib-index: Avoid getting expunged-status in index lookups when not necessary.
This especially improves dsync performance. |
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. |
9bd08aa09ea0cbd7b221aae9fc0534eb762d3de6 |
|
22-Jan-2013 |
Timo Sirainen <tss@iki.fi> |
lib-index: Fixes to handling broken cache records that point outside file.
Especially try to avoid failing by trying to allocate gigabytes of memory. |
58f931fc192f88e64bde7a7d6d8812fc8f14cd32 |
|
26-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
lib-index: If cache file unexpectedly shrinks in header lookup, log an error. |
8ac66221e8fdc2c5523cff1893e0d1c5de25fa49 |
|
18-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
lib-index: Code cleanup: Removed mail_cache.data |
82ed69779f49bd71ef1b570ce8aca67d357dbee8 |
|
18-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
lib-index: mail_cache_map() API cleanup |
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] |
a10ed8c47534b4c6b6bf2711ccfe577e720a47b4 |
|
23-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Marked functions parameters that are allowed to be NULL. Some APIs were also changed.
The non-obvious APIs where NULL parameter was changed to "" are
master_service_init() and auth_master_user_list_init().
These checks can currently be enabled only on a patched clang:
http://llvm.org/bugs/show_bug.cgi?id=6786 |
5f5870385cff47efd2f58e7892f251cf13761528 |
|
12-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2012. |
58816241cbaf79e3f8dd7d831b7c6f02c6c38ee6 |
|
05-May-2011 |
Timo Sirainen <tss@iki.fi> |
lib-index: Added mail_cache_field_exists_any() |
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. |
1d738cce754bc64bbc66d3355ebdaf3f6eac55f1 |
|
14-May-2010 |
Timo Sirainen <tss@iki.fi> |
lib-index: Use IO_BLOCK_SIZE
--HG--
branch : HEAD |
e59faf65ce864fe95dc00f5d52b8323cdbd0608a |
|
25-Jan-2010 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2010.
--HG--
branch : HEAD |
8a4851655777e484d70b77bed6a7a8fac5c0c98c |
|
27-Jul-2009 |
Timo Sirainen <tss@iki.fi> |
cache file: If offset isn't 32bit aligned, assume it's corrupted.
--HG--
branch : HEAD |
c9dea5c23355dea35c6fa423de69f6507852efe4 |
|
17-Jun-2009 |
Timo Sirainen <tss@iki.fi> |
Use array_sort() instead of qsort() wherever possible.
--HG--
branch : HEAD |
45312f52ff3a3d4c137447be4c7556500c2f8bf2 |
|
06-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2009.
--HG--
branch : HEAD |
d6693dac50e4fb547d8dc61b85820f1761a33575 |
|
02-Mar-2008 |
Timo Sirainen <tss@iki.fi> |
Optimized cache record loop tracking.
--HG--
branch : HEAD |
ba8bdb9dfc467ed2e6a988c42567fc44a28bebfc |
|
02-Mar-2008 |
Timo Sirainen <tss@iki.fi> |
Optimized cache record loop tracking.
--HG--
branch : HEAD |
19e8adccba16ff419f5675b1575358c2956dce83 |
|
11-Feb-2008 |
Timo Sirainen <tss@iki.fi> |
Renamed T_FRAME_BEGIN/END to T_BEGIN/END. Removed T_FRAME() macro and
replaced them with T_BEGIN/END calls. T_FRAME() made it difficult to debug
code with gdb.
--HG--
branch : HEAD |
6a7f64562ddd0dd2fec755ec4e9c9afde8e85cf1 |
|
10-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
Link cache records together directly when writing the new records, instead
of delaying them until later and causing lots of small writes. We still do
this delayed check and do the writes when it's required, but it shouldn't
happen normally.
--HG--
branch : HEAD |
76b43e4417bab52e913da39b5f5bc2a130d3f149 |
|
01-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2008.
--HG--
branch : HEAD |
0beb5d6c661ee68130a954ed0f31a34c19195fb7 |
|
29-Dec-2007 |
Timo Sirainen <tss@iki.fi> |
Update caching decision for fields even if it doesn't currently exist in the
cache file. If the field is added later within the session, the decision and
last_used field will be correct.
--HG--
branch : HEAD |
eddd9bf1a1369aea4a2715f6be1137da6d17d293 |
|
05-Dec-2007 |
Timo Sirainen <tss@iki.fi> |
Replaced t_push/t_pop calls with T_FRAME*() macros.
--HG--
branch : HEAD |
dc0474dc9d5652d76cb41f439844dd80c8b96642 |
|
18-Nov-2007 |
Timo Sirainen <tss@iki.fi> |
If cache file's file_seq appears to be broken, handle it by compressing the
cache instead of just never using it.
--HG--
branch : HEAD |
f65602dff8a85170176ddaa790db6df56006d132 |
|
20-Oct-2007 |
Timo Sirainen <tss@iki.fi> |
Minor read access buffer overflow fix.
--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 |
5e4f94015f5bbc9eefb1f2cb7af81ed50dcd2b39 |
|
13-Aug-2007 |
Timo Sirainen <tss@iki.fi> |
Make sure we don't try to re-read cache fields when compressing.
--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 |
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 |
aff3354de83df9d683587e27461697193ff36591 |
|
06-Aug-2007 |
Timo Sirainen <tss@iki.fi> |
Use mail_index_ext_get_reset_id() to get the current reset_id, so we get the
correct one in case it has been updated for current transaction already.
Also fixes an assert-crash in case the cache extension didn't yet even exist
outside the transaction.
--HG--
branch : HEAD |
73a44af966c790560a72a0447f37bb35b1031a83 |
|
15-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
mail_cache_lookup_iter_next() returned -1 if entry didn't exist, causing
the first field for the record not to be added to cache.
--HG--
branch : HEAD |
72368bc3058d36912317ffe55e6017205f4fa036 |
|
12-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
Fixes
--HG--
branch : HEAD |
84004c37192dc91a8dcc9f213ca2cfa22b4f40e4 |
|
12-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
Header lookups from cache returned always "doesn't exist".
--HG--
branch : HEAD |
02166e32bcda5d0018ae1a2a38614126ab5c6025 |
|
15-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
Crashfix if cache is unusable.
--HG--
branch : HEAD |
6b85bc4b03e552cfaeeae872d63c2d8ac5fcb7c4 |
|
14-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
Changed mail_cache_foreach() to be an iterator: mail_cache_lookup_iter_*()
--HG--
branch : HEAD |
710deabc6b3c305c3a842e7a2e0d173c526d13a7 |
|
14-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
s/field/field_idx/
--HG--
branch : HEAD |
1b97a59edb073e9a89ac43a21a9abe5d590d4a56 |
|
14-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
Cache code cleanups
--HG--
branch : HEAD |
2a21435425c50514fa4d0708110a4ed7f0d85661 |
|
14-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
Make sure cache file is opened when looking up headers.
--HG--
branch : HEAD |
b1f58fea9e1813b48735a021043f1cea2b495c3b |
|
14-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
Cache decisions weren't updated when doing header lookups.
--HG--
branch : HEAD |
4fde94863f34dfdffc6c26da9d571a61385b263d |
|
14-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
Header lookup from cache could have returned garbage after headers in very
rare conditions.
--HG--
branch : HEAD |
d8ade1a6747c57095fba2c3765bbd9c1a19efbbb |
|
14-Jan-2007 |
Timo Sirainen <tss@iki.fi> |
Removed file offset caching from mail_cache_foreach(). It didn't work
correctly when cache file was just compressed, and caused "cache file
corrupted" errors.
--HG--
branch : HEAD |
00efa7d99981e18e286c02b18c1163dde18ee521 |
|
15-Dec-2006 |
Timo Sirainen <tss@iki.fi> |
Type safe callbacks weren't as easy as I thought. Only callback(void
*context) can be handled generically. Others can be handled specially, but
only if all the parameters are pointers, otherwise eg. int parameter can be
replaced with long without compiler giving any warnings.
--HG--
branch : HEAD |
59151b71059df1190acd75d8717ed04a7920c862 |
|
15-Dec-2006 |
Timo Sirainen <tss@iki.fi> |
Added context parameter type safety checks for most callback APIs.
--HG--
branch : HEAD |
6a8a4c9f530668cd8961b73d702856ed94f05f80 |
|
13-Oct-2006 |
Timo Sirainen <tss@iki.fi> |
Delay opening the cache file until it's actually needed.
--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 |
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 |
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 |
16f816d3f3c32ae3351834253f52ddd0212bcbf3 |
|
04-Jul-2005 |
Timo Sirainen <tss@iki.fi> |
Moved array declaration to array-decl.h and include it in lib.h. So array.h
needs to be now included to use any array_*() functions.
--HG--
branch : HEAD |
4b0a728d4e5ad007b5cee2043a3d2030359f6613 |
|
14-May-2005 |
Timo Sirainen <tss@iki.fi> |
Error handling fixes
--HG--
branch : HEAD |
9d3ccd79130199ffdb19a688027d49bf20a4aaaa |
|
08-Apr-2005 |
Timo Sirainen <tss@iki.fi> |
Several size_t -> unsigned int changes. Try to keep "unsigned int" for
counters, size_t for actual memory range sizes.
--HG--
branch : HEAD |
287ba82a8da3eaa473b5735d4eeac2fb4c5d8117 |
|
12-Mar-2005 |
Timo Sirainen <tss@iki.fi> |
Changed many buffers to arrays. Cleans up the code a lot.
--HG--
branch : HEAD |
fcfb528483369975066c6adf1c55c16e6fb6e91f |
|
29-Nov-2004 |
Timo Sirainen <tss@iki.fi> |
Crashfixes for reading corrupted cache files.
--HG--
branch : HEAD |
1098fc409a45e7603701dc94635927a673bee0c1 |
|
08-Nov-2004 |
Timo Sirainen <tss@iki.fi> |
Cache file works now with mmap_disable=yes. Still needs a few optimizations.
--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 |
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 |
58febed28f2af78b2d8a281c851d9b67160c4bd3 |
|
16-Sep-2004 |
Timo Sirainen <tss@iki.fi> |
Fix for circular record list detection, we can't use data stack for buffer.
--HG--
branch : HEAD |
785b1ca149341b70bf2cb8cc3049f1c4c1070b52 |
|
16-Sep-2004 |
Timo Sirainen <tss@iki.fi> |
Make sure we don't get into infinite loops while reading cache.
--HG--
branch : HEAD |
4edf90751f075cc6ab3d6f53fc78b656efa80922 |
|
12-Sep-2004 |
Timo Sirainen <tss@iki.fi> |
ID mapping fixes.
--HG--
branch : HEAD |
2112c190034c937b4b1613c3689d8239adb6c310 |
|
11-Sep-2004 |
Timo Sirainen <tss@iki.fi> |
a few more cache fixes
--HG--
branch : HEAD |
68aa521f6fc7a40480a56a7b3d61c7dda19061f3 |
|
09-Sep-2004 |
Timo Sirainen <tss@iki.fi> |
Added debugging
--HG--
branch : HEAD |
dd4b5f14b71b01a84af942e720a2d6e5f15ee1a7 |
|
04-Sep-2004 |
Timo Sirainen <tss@iki.fi> |
Added support for bitmask type.
--HG--
branch : HEAD |
65a5fb2343f9870713bfca0b24abb58dcade605e |
|
15-Aug-2004 |
Timo Sirainen <tss@iki.fi> |
bugfix
--HG--
branch : HEAD |
a11af9df3bb29db35f956d337ab88160729580b0 |
|
20-Jul-2004 |
Timo Sirainen <tss@iki.fi> |
mail_cache_lookup_headers() fix
--HG--
branch : HEAD |
4bbee99b3aef449a9a2a11a5b5cf1ca486915c49 |
|
20-Jul-2004 |
Timo Sirainen <tss@iki.fi> |
Cache fixes. Decisions are saved again.
--HG--
branch : HEAD |
e015e2f7e7f48874495f9df8b0dd192b7ffcb5cc |
|
18-Jul-2004 |
Timo Sirainen <tss@iki.fi> |
Header caching redesigned. New design allows caching decisions per field, so
they can be divided to temporary/permanent. Cached headers are now always
returned in original order, old code didn't guarantee it. Some other caching
changes. (still missing code to store changes in caching decisions)
--HG--
branch : HEAD |
ca316aeb7648d3f1bcf45231f73ddeb1b67a6961 |
|
10-Jul-2004 |
Timo Sirainen <tss@iki.fi> |
Cache fixes. Lookups now look into transactions too.
--HG--
branch : HEAD |
992a13add4eea0810e4db0f042a595dddf85536a |
|
08-Jul-2004 |
Timo Sirainen <tss@iki.fi> |
Cache file fixes, API changes, etc. It's still in somewhat ugly state, but
getting better..
--HG--
branch : HEAD |
1171f0abf442638bac1827bb24a0b6b8eb682a82 |
|
04-Jul-2004 |
Timo Sirainen <tss@iki.fi> |
Cache API updates. Don't return direct pointers to mmaped cache file anymore.
--HG--
branch : HEAD |
72cbf33ae81fde08384d30c779ff540752d9256c |
|
04-Jul-2004 |
Timo Sirainen <tss@iki.fi> |
Cache updating is done now by first reserving space where to write, and then
writing to it whenever buffer gets full. There is no persistent cache file
locks anymore because of this, but it also means that the same cached field
may be written multiple times to the file by different processes. Also since
we reserve more space than we actually need at first, it some space can be
wasted if multiple processes are updating the cache.
--HG--
branch : HEAD |
a40d26f83af808a0ea1e212c001d682a96d870b0 |
|
04-Jul-2004 |
Timo Sirainen <tss@iki.fi> |
Caching fixes and optimizations. Removed all network byte ordering code -
it's not worth the trouble and would require massive changes in indexing
code as well to be useful. Changed next_offset to prev_offset which is
updated while syncing index.
--HG--
branch : HEAD |
fd2f5fbc1f07aa93e2214a28cdf02437fb7d06c8 |
|
04-Jul-2004 |
Timo Sirainen <tss@iki.fi> |
Cache file compression works now and compressed cache file is reopened.
Several other cleanups related to opening - cache file isn't created
immediately anymore.
--HG--
branch : HEAD |
8aacc9e7c84f8376822823ec98c2f551d4919b2e |
|
28-Jun-2004 |
Timo Sirainen <tss@iki.fi> |
Added some smartness for deciding what to cache. Cache compression code compiles, but untested.
--HG--
branch : HEAD |
ae4a7e6f1b097004f2bb62dd43f14db3f78ada0f |
|
23-Jun-2004 |
Timo Sirainen <tss@iki.fi> |
Crashfixes for disabled cache.
--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 |
b44a50ea4123f21dfc8e1b6c602f690fd9721b67 |
|
21-Jun-2004 |
Timo Sirainen <tss@iki.fi> |
Cache doesn't crash anymore if we're asking it about messages that exist
only in uncommitted transactions.
--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 |
da5d50534cfca45d0aaaf0bdac17b287b4588809 |
|
20-Jun-2004 |
Timo Sirainen <tss@iki.fi> |
Beginnings of getting cache file working again. Easy to break currently, but
basics seem to work.
--HG--
branch : HEAD |
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834 |
|
27-Apr-2004 |
Timo Sirainen <tss@iki.fi> |
importing new index code. mbox still broken.
--HG--
branch : HEAD |