fix(?) hard to reproduce double free

git-svn-id: svn+ssh://svn.corp.yahoo.com/yahoo/yrl/labs/pnuts/code/logstore@675 8dad8b1f-cf64-0410-95b6-bcf113ffbcfe
This commit is contained in:
sears 2010-03-09 17:45:51 +00:00
parent 156c015b84
commit 104f38f517

View file

@ -802,6 +802,8 @@ diskTreeComponent::iterator::iterator(int xid, recordid root, const byte* key, l
if(lsm_entry_rid.page == NULLRID.page && lsm_entry_rid.slot == NULLRID.slot) { if(lsm_entry_rid.page == NULLRID.page && lsm_entry_rid.slot == NULLRID.slot) {
unlock(p->rwlatch); unlock(p->rwlatch);
releasePage(p);
p = NULL;
done = true; done = true;
} else { } else {
assert(lsm_entry_rid.size != INVALID_SLOT); assert(lsm_entry_rid.size != INVALID_SLOT);