Ticket #40: betterdebug.patch

File betterdebug.patch, 641 bytes (added by Olly Betts, 17 years ago)

Debug tracing tweaks to help investigate this

  • backends/multi/multi_postlist.cc

     
    117117MultiPostList::get_doclength() const
    118118{
    119119    DEBUGCALL(DB, Xapian::doclength, "MultiPostList::get_doclength", "");
     120    Assert(!at_end());
     121    Assert(currdoc != 0);
    120122    Xapian::doclength result = postlists[(currdoc - 1) % multiplier]->get_doclength();
    121     AssertParanoid(result == this_db.get_doclength(get_docid()));
     123    AssertEq(result, this_db.get_doclength(get_docid()));
    122124    RETURN(result);
    123125}
    124126