8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 21:23:04 +01:00

Fixed bug CORE-2879 : Sweep could raise error : page 0 is of wrong type (expected 6, found 1)

This commit is contained in:
hvlad 2010-02-22 10:16:06 +00:00
parent 4acd0f8e0c
commit d940b8ce4f

View File

@ -2869,8 +2869,8 @@ bool VIO_sweep(thread_db* tdbb, jrd_tra* transaction)
for (size_t i = 1; (vector = dbb->dbb_relations) && i < vector->count(); i++)
{
if ((relation = (*vector)[i]) && relation->getPages(tdbb)->rel_pages &&
!(relation->rel_flags & (REL_deleted | REL_deleting)))
if ((relation = (*vector)[i]) && !(relation->rel_flags & (REL_deleted | REL_deleting)) &&
relation->getPages(tdbb)->rel_pages)
{
rpb.rpb_relation = relation;
rpb.rpb_number.setValue(BOF_NUMBER);