Ticket #40: betterdebug.patch

File betterdebug.patch, 0.6 kB (added by olly, 21 months 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