[dovecot-cvs] dovecot/src/lib-index mail-cache-compress.c, 1.40,
1.41
cras at dovecot.org
cras at dovecot.org
Sun Feb 26 12:05:16 EET 2006
Update of /var/lib/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv5842/lib-index
Modified Files:
mail-cache-compress.c
Log Message:
Added i_stream_destroy() and o_stream_destroy() and used them instead of
*_stream_unref() where possible. Fixes at least one problem with io_remove()
being called after socket was closed, which caused problems with epoll.
Index: mail-cache-compress.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-cache-compress.c,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -d -r1.40 -r1.41
--- mail-cache-compress.c 14 Jan 2006 18:47:34 -0000 1.40
+++ mail-cache-compress.c 26 Feb 2006 10:05:13 -0000 1.41
@@ -216,7 +216,7 @@
errno = output->stream_errno;
mail_cache_set_syscall_error(cache, "o_stream_flush()");
(void)mail_index_transaction_rollback(&t);
- o_stream_unref(&output);
+ o_stream_destroy(&output);
return -1;
}
@@ -225,7 +225,7 @@
(void)file_set_size(fd, MAIL_CACHE_INITIAL_SIZE);
}
- o_stream_unref(&output);
+ o_stream_destroy(&output);
if (fdatasync(fd) < 0) {
mail_cache_set_syscall_error(cache, "fdatasync()");
More information about the dovecot-cvs
mailing list