Mercurial > dovecot > original-hg > dovecot-1.2
changeset 5630:3e711b998274 HEAD
Fixed fetching physical/virtual size when it wasn't already in cache.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 16 May 2007 21:50:16 +0300 |
parents | 6b06a60d7e44 |
children | 139416ee311e |
files | src/lib-storage/index/cydir/cydir-mail.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/cydir/cydir-mail.c Wed May 16 21:42:04 2007 +0300 +++ b/src/lib-storage/index/cydir/cydir-mail.c Wed May 16 21:50:16 2007 +0300 @@ -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;