Mercurial > dovecot > original-hg > dovecot-1.2
comparison src/lib-storage/index/index-search.c @ 66:f239e9a2c96c HEAD
wrong assert()s :)
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 28 Aug 2002 20:41:29 +0300 |
parents | b4adc3429867 |
children | 27fd7817b226 |
comparison
equal
deleted
inserted
replaced
65:168e0bd616b6 | 66:f239e9a2c96c |
---|---|
584 | 584 |
585 search_get_sequid(ibox, args, first_seq, last_seq, | 585 search_get_sequid(ibox, args, first_seq, last_seq, |
586 &first_uid, &last_uid); | 586 &first_uid, &last_uid); |
587 | 587 |
588 /* seq_update() should make sure that these can't happen */ | 588 /* seq_update() should make sure that these can't happen */ |
589 i_assert(*first_seq >= *last_seq); | 589 i_assert(*first_seq <= *last_seq); |
590 i_assert(first_uid >= last_uid); | 590 i_assert(first_uid <= last_uid); |
591 | 591 |
592 if (first_uid != 0 && (*first_seq != 1 || | 592 if (first_uid != 0 && (*first_seq != 1 || |
593 *last_seq != ibox->synced_messages_count)) { | 593 *last_seq != ibox->synced_messages_count)) { |
594 /* UIDs were used - see if they affect the sequences */ | 594 /* UIDs were used - see if they affect the sequences */ |
595 rec = ibox->index->lookup_uid_range(ibox->index, | 595 rec = ibox->index->lookup_uid_range(ibox->index, |
616 if (*first_seq == 0) | 616 if (*first_seq == 0) |
617 *first_seq = 1; | 617 *first_seq = 1; |
618 if (*last_seq == 0) | 618 if (*last_seq == 0) |
619 *last_seq = ibox->synced_messages_count; | 619 *last_seq = ibox->synced_messages_count; |
620 | 620 |
621 i_assert(*first_seq >= *last_seq); | 621 i_assert(*first_seq <= *last_seq); |
622 } | 622 } |
623 | 623 |
624 static void search_messages(IndexMailbox *ibox, MailSearchArg *args, | 624 static void search_messages(IndexMailbox *ibox, MailSearchArg *args, |
625 IOBuffer *outbuf, int uid_result) | 625 IOBuffer *outbuf, int uid_result) |
626 { | 626 { |