dovecot: Updated to use the new head/tail headers

dovecot at dovecot.org dovecot at dovecot.org
Sat Jun 16 01:09:29 EEST 2007


details:   http://hg.dovecot.org/dovecot/rev/a230272b3f28
changeset: 5751:a230272b3f28
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Jun 16 00:28:30 2007 +0300
description:
Updated to use the new head/tail headers

diffstat:

1 file changed, 7 insertions(+), 3 deletions(-)
src/util/idxview.c |   10 +++++++---

diffs (20 lines):

diff -r 18fb3f1fc41b -r a230272b3f28 src/util/idxview.c
--- a/src/util/idxview.c	Sat Jun 16 00:18:27 2007 +0300
+++ b/src/util/idxview.c	Sat Jun 16 00:28:30 2007 +0300
@@ -69,9 +69,13 @@ static void dump_hdr(int fd)
 	printf("first unseen uid lowwater = %u\n", hdr.first_unseen_uid_lowwater);
 	printf("first deleted uid lowwater = %u\n", hdr.first_deleted_uid_lowwater);
 	printf("log file seq = %u\n", hdr.log_file_seq);
-	printf("log file index int offset = %u\n", hdr.log_file_index_int_offset);
-	printf("log file index ext offset = %u\n", hdr.log_file_index_ext_offset);
-	printf("log file mailbox offset = %u\n", hdr.log_file_mailbox_offset);
+	if (hdr.minor_version == 0) {
+		printf("log file int offset = %u\n", hdr.log_file_tail_offset);
+		printf("log file ext offset = %u\n", hdr.log_file_head_offset);
+	} else {
+		printf("log file tail offset = %u\n", hdr.log_file_tail_offset);
+		printf("log file head offset = %u\n", hdr.log_file_head_offset);
+	}
 	printf("sync size = %llu\n", (unsigned long long)hdr.sync_size);
 	printf("sync stamp = %u\n", hdr.sync_stamp);
 	printf("day stamp = %u\n", hdr.day_stamp);


More information about the dovecot-cvs mailing list