[dovecot-cvs] dovecot/src/plugins/fts fts-storage.c,1.11,1.12
tss at dovecot.org
tss at dovecot.org
Sat Dec 9 21:49:47 UTC 2006
- Previous message: [dovecot-cvs] dovecot/src/plugins/fts-squat fts-backend-squat.c, 1.3, 1.4 squat-trie.c, 1.3, 1.4 squat-uidlist.c, 1.3, 1.4 squat-uidlist.h, 1.3, 1.4
- Next message: [dovecot-cvs] dovecot/src/lib-mail message-decoder.c,1.2,1.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /var/lib/cvs/dovecot/src/plugins/fts
In directory talvi:/tmp/cvs-serv18491
Modified Files:
fts-storage.c
Log Message:
Don't waste memory in data stack.
Index: fts-storage.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/plugins/fts/fts-storage.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- fts-storage.c 9 Dec 2006 21:08:27 -0000 1.11
+++ fts-storage.c 9 Dec 2006 21:49:45 -0000 1.12
@@ -255,10 +255,12 @@
mail = mail_alloc(t, 0, NULL);
search_ctx = mailbox_search_init(t, NULL, &search_arg, NULL);
while (mailbox_search_next(search_ctx, mail) > 0) {
- if (fts_build_mail(&ctx, mail) < 0) {
- ret = -1;
+ t_push();
+ ret = fts_build_mail(&ctx, mail);
+ t_pop();
+
+ if (ret < 0)
break;
- }
}
if (mailbox_search_deinit(&search_ctx) < 0)
ret = -1;
- Previous message: [dovecot-cvs] dovecot/src/plugins/fts-squat fts-backend-squat.c, 1.3, 1.4 squat-trie.c, 1.3, 1.4 squat-uidlist.c, 1.3, 1.4 squat-uidlist.h, 1.3, 1.4
- Next message: [dovecot-cvs] dovecot/src/lib-mail message-decoder.c,1.2,1.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the dovecot-cvs
mailing list