]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-index: Fixed debug logging.
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Wed, 3 Aug 2016 10:18:17 +0000 (13:18 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 4 Aug 2016 15:16:45 +0000 (18:16 +0300)
src/lib-index/mail-cache-lookup.c

index f3e875123c335b6e9d2c0b3a0a49e156690d5700..0f83198dc2a7195d67a78e95cbd2575e1b49886c 100644 (file)
@@ -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);