fix nasty bug where diskTreeComponent (perhaps) drops tuples. With the recently added paranoid checks, this fix should do nothing worse than trigger assertion failures (as opposed to silently losing data...)

git-svn-id: svn+ssh://svn.corp.yahoo.com/yahoo/yrl/labs/pnuts/code/logstore@627 8dad8b1f-cf64-0410-95b6-bcf113ffbcfe
This commit is contained in:
sears 2010-02-25 19:02:09 +00:00
parent 27e6f0b0f4
commit cb614dff1b

View file

@ -909,7 +909,7 @@ lladdIterator_t* diskTreeComponentIterator::openAt(int xid, recordid root, const
impl->p = p;
impl->current.page = lsm_entry_rid.page;
impl->current.slot = lsm_entry_rid.slot; // this is current rid, so set it to the slot of the entry that matches.
impl->current.slot = lsm_entry_rid.slot-1; // this is current rid, which is one less than the first thing next will return (so subtract 1)
impl->current.size = lsm_entry_rid.size;
impl->t = 0; // must be zero so free() doesn't croak.