Mercurial > dovecot > original-hg > dovecot-1.2
changeset 5751:a230272b3f28 HEAD
Updated to use the new head/tail headers
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sat, 16 Jun 2007 00:28:30 +0300 |
parents | 18fb3f1fc41b |
children | 911b9f0cca13 |
files | src/util/idxview.c |
diffstat | 1 files changed, 7 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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 @@ 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);