changeset 20562:1e842633f27a

lib-index: Fixed debug logging.
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Wed, 03 Aug 2016 13:18:17 +0300
parents 6f381c5ad896
children e6647016bc12
files src/lib-index/mail-cache-lookup.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-index/mail-cache-lookup.c	Fri Jul 29 01:02:29 2016 +0300
+++ b/src/lib-index/mail-cache-lookup.c	Wed Aug 03 13:18:17 2016 +0300
@@ -635,8 +635,10 @@
 		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);