Mercurial > dovecot > core-2.2
changeset 12465:e6076467fbf0
lib-index: Don't try to stat() in-memory index.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 23 Nov 2010 18:26:38 +0000 |
parents | 464fe0e62078 |
children | 21966f298a3c |
files | src/lib-index/mail-transaction-log.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-index/mail-transaction-log.c Tue Nov 23 17:39:19 2010 +0000 +++ b/src/lib-index/mail-transaction-log.c Tue Nov 23 18:26:38 2010 +0000 @@ -41,6 +41,9 @@ { struct stat st; + if (MAIL_INDEX_IS_IN_MEMORY(log->index)) + return; + if (stat(log->filepath2, &st) < 0) { if (errno != ENOENT && errno != ESTALE) { mail_index_set_error(log->index,