dovecot-2.2: lib-index: Avoid getting expunged-status in index l...
dovecot at dovecot.org
dovecot at dovecot.org
Sat Feb 16 13:58:25 EET 2013
details: http://hg.dovecot.org/dovecot-2.2/rev/a709ae98a728
changeset: 15777:a709ae98a728
user: Timo Sirainen <tss at iki.fi>
date: Sat Feb 16 13:58:14 2013 +0200
description:
lib-index: Avoid getting expunged-status in index lookups when not necessary.
This especially improves dsync performance.
diffstat:
src/lib-index/mail-cache-lookup.c | 4 +---
src/lib-index/mail-cache-transaction.c | 3 +--
2 files changed, 2 insertions(+), 5 deletions(-)
diffs (35 lines):
diff -r e3eaa8303987 -r a709ae98a728 src/lib-index/mail-cache-lookup.c
--- a/src/lib-index/mail-cache-lookup.c Sat Feb 16 13:51:05 2013 +0200
+++ b/src/lib-index/mail-cache-lookup.c Sat Feb 16 13:58:14 2013 +0200
@@ -63,10 +63,8 @@
struct mail_index_map *map;
const void *data;
uint32_t offset;
- bool expunged;
- mail_index_lookup_ext_full(view, seq, cache->ext_id,
- &map, &data, &expunged);
+ mail_index_lookup_ext_full(view, seq, cache->ext_id, &map, &data, NULL);
if (data == NULL) {
/* no cache offsets */
return 0;
diff -r e3eaa8303987 -r a709ae98a728 src/lib-index/mail-cache-transaction.c
--- a/src/lib-index/mail-cache-transaction.c Sat Feb 16 13:51:05 2013 +0200
+++ b/src/lib-index/mail-cache-transaction.c Sat Feb 16 13:58:14 2013 +0200
@@ -308,7 +308,6 @@
ARRAY_TYPE(uint32_t) seq_offsets;
uint32_t i, seq_count, reset_id, prev_offset, *offsetp;
const void *data;
- bool expunged;
i_assert(ctx->min_seq != 0);
@@ -323,7 +322,7 @@
else {
mail_index_lookup_ext_full(ctx->view->trans_view, seqs[i],
ctx->cache->ext_id, &map,
- &data, &expunged);
+ &data, NULL);
prev_offsetp = data;
if (prev_offsetp == NULL || *prev_offsetp == 0)
More information about the dovecot-cvs
mailing list