[dovecot-cvs] dovecot/src/plugins/fts-squat squat-trie.c, 1.17, 1.18 squat-uidlist.c, 1.12, 1.13
tss at dovecot.org
tss at dovecot.org
Mon Mar 26 02:00:53 EEST 2007
Update of /var/lib/cvs/dovecot/src/plugins/fts-squat
In directory talvi:/tmp/cvs-serv12072
Modified Files:
squat-trie.c squat-uidlist.c
Log Message:
Write to files in larger blocks
Index: squat-trie.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/plugins/fts-squat/squat-trie.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- squat-trie.c 25 Mar 2007 22:12:19 -0000 1.17
+++ squat-trie.c 25 Mar 2007 23:00:50 -0000 1.18
@@ -1476,6 +1476,7 @@
}
ctx->output = o_stream_create_file(trie->fd, default_pool, 0, FALSE);
+ o_stream_cork(ctx->output);
if (hdr.used_file_size == 0) {
o_stream_send(ctx->output, &hdr, sizeof(hdr));
ctx->modified = TRUE;
Index: squat-uidlist.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/plugins/fts-squat/squat-uidlist.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- squat-uidlist.c 25 Mar 2007 20:26:53 -0000 1.12
+++ squat-uidlist.c 25 Mar 2007 23:00:50 -0000 1.13
@@ -582,6 +582,7 @@
uidlist->output = o_stream_create_file(uidlist->fd, default_pool,
0, FALSE);
+ o_stream_cork(uidlist->output);
if (uidlist->hdr.used_file_size < sizeof(uidlist->hdr)) {
/* creating a new file, write a dummy header */
o_stream_seek(uidlist->output, 0);
More information about the dovecot-cvs
mailing list