Skip to content

Commit c442d07

Browse files
committed
Ensure that BucketEntryIterator only yields entries of the proper type
1 parent 9b5bee7 commit c442d07

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎src/bucket/BucketListSnapshot.cpp‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -753,10 +753,10 @@ BucketEntryIterator::advance()
753753
break;
754754
}
755755

756-
auto type = mEntry.type();
757-
releaseAssert(type == LIVEENTRY || type == INITENTRY ||
758-
type == DEADENTRY);
759-
return true;
756+
if (mKey.type() == mType)
757+
{
758+
return true;
759+
}
760760
}
761761
return false;
762762
}

0 commit comments

Comments
 (0)