Skip to content

Commit

Permalink
lib-index: Fixed debug logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
sirainen committed Aug 3, 2016
1 parent f883b31 commit feda872
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/lib-index/mail-cache-lookup.c
Expand Up @@ -635,8 +635,10 @@ mail_cache_get_missing_reason(struct mail_cache_view *view, uint32_t seq)
if (offset != 0)
break;
}
if (seq == 0)
return t_strdup_printf("Cache file is empty, reset_id=%u", reset_id);
if (seq == 0) {
return t_strdup_printf("Cache file is empty, reset_id=%u",
view->cache->hdr->file_seq);
}

uint32_t uid;
mail_index_lookup_uid(view->view, seq, &uid);
Expand Down

0 comments on commit feda872

Please sign in to comment.