[dovecot-cvs] dovecot/src/plugins/fts fts-storage.c,1.14,1.15
tss at dovecot.org
tss at dovecot.org
Thu Dec 21 14:21:26 UTC 2006
Update of /var/lib/cvs/dovecot/src/plugins/fts
In directory talvi:/tmp/cvs-serv25658
Modified Files:
fts-storage.c
Log Message:
Don't build indexes just for header lookups.
Index: fts-storage.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/plugins/fts/fts-storage.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- fts-storage.c 21 Dec 2006 13:16:32 -0000 1.14
+++ fts-storage.c 21 Dec 2006 14:21:24 -0000 1.15
@@ -230,6 +230,12 @@
if (fts_backend_get_last_uid(backend, &last_uid) < 0)
return -1;
+ if (last_uid == 0 && fctx->best_arg->type == SEARCH_HEADER) {
+ /* index doesn't exist. we're not creating it just for
+ header lookups. */
+ return -1;
+ }
+
memset(&seqset, 0, sizeof(seqset));
if (mailbox_get_uids(t->box, last_uid+1, (uint32_t)-1,
&seqset.seq1, &seqset.seq2) < 0)
@@ -257,7 +263,6 @@
}
}
-
ctx = i_new(struct fts_storage_build_context, 1);
ctx->build = build;
ctx->seqset = seqset;
More information about the dovecot-cvs
mailing list