[dovecot-cvs] dovecot/src/lib-storage/index/cydir cydir-mail.c, 1.2, 1.3
tss at dovecot.org
tss at dovecot.org
Wed May 16 21:50:18 EEST 2007
Update of /var/lib/cvs/dovecot/src/lib-storage/index/cydir
In directory talvi:/tmp/cvs-serv1109
Modified Files:
cydir-mail.c
Log Message:
Fixed fetching physical/virtual size when it wasn't already in cache.
Index: cydir-mail.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/cydir/cydir-mail.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- cydir-mail.c 13 May 2007 17:22:39 -0000 1.2
+++ cydir-mail.c 16 May 2007 18:50:16 -0000 1.3
@@ -86,6 +86,7 @@
if (cydir_mail_stat(_mail, &st) < 0)
return (time_t)-1;
+ data->physical_size = data->virtual_size = st.st_size;
index_mail_cache_add(mail, MAIL_CACHE_PHYSICAL_FULL_SIZE,
&data->physical_size, sizeof(data->physical_size));
return data->physical_size;
More information about the dovecot-cvs
mailing list