Skip to content

Commit

Permalink
lib-index: Don't log error on dovecot.index.cache delete if it doesn'…
Browse files Browse the repository at this point in the history
…t exist

For example if a cache is marked as corrupted and there is no cache, it's
not really an error that it doesn't exist.

Fixes:
Error: unlink(.../dovecot.index.cache) failed: No such file or directory (in mail-cache.c:29)
  • Loading branch information
sirainen committed Jan 26, 2017
1 parent dcd0c99 commit 3f7b36a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib-index/mail-cache.c
Expand Up @@ -26,7 +26,7 @@ void mail_cache_set_syscall_error(struct mail_cache *cache,
static void mail_cache_unlink(struct mail_cache *cache)
{
if (!cache->index->readonly && !MAIL_INDEX_IS_IN_MEMORY(cache->index))
i_unlink(cache->filepath);
i_unlink_if_exists(cache->filepath);
}

void mail_cache_reset(struct mail_cache *cache)
Expand Down

0 comments on commit 3f7b36a

Please sign in to comment.