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:
parent
156c015b84
commit
104f38f517
1 changed files with 2 additions and 0 deletions
|
@ -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) {
|
||||
unlock(p->rwlatch);
|
||||
releasePage(p);
|
||||
p = NULL;
|
||||
done = true;
|
||||
} else {
|
||||
assert(lsm_entry_rid.size != INVALID_SLOT);
|
||||
|
|
Loading…
Reference in a new issue