bug fixes

This commit is contained in:
Vitor Santos Costa 2019-04-02 11:22:01 +01:00
parent 8e2864c0cf
commit 644a9ad852
1 changed files with 5 additions and 1 deletions

View File

@ -785,6 +785,10 @@ static void kill_children(LogUpdIndex *c, PredEntry *ap) {
ncl = c->ChildIndex;
/* kill children */
while (ncl) {
if (ncl->ClRefCount>0) {
c->ClRefCount--;
}return;
}
kill_first_log_iblock(ncl, c, ap);
ncl = c->ChildIndex;
}
@ -860,7 +864,7 @@ static void kill_first_log_iblock(LogUpdIndex *c, LogUpdIndex *parent,
if (DBErasedIList)
DBErasedIList->PrevSiblingIndex = c;
DBErasedIList = c;
if (!((c->ClFlags & InUseMask) || c->ClRefCount)) {
if (!(c->ClFlags & InUseMask || c->ClRefCount)) {
kill_off_lu_block(c, parent, ap);
} else {
if (c->ClFlags & ErasedMask)