From d940b8ce4faff2a40655841e887b80dedfd6ce44 Mon Sep 17 00:00:00 2001 From: hvlad Date: Mon, 22 Feb 2010 10:16:06 +0000 Subject: [PATCH] Fixed bug CORE-2879 : Sweep could raise error : page 0 is of wrong type (expected 6, found 1) --- src/jrd/vio.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jrd/vio.cpp b/src/jrd/vio.cpp index 4342a1429d..d2159412db 100644 --- a/src/jrd/vio.cpp +++ b/src/jrd/vio.cpp @@ -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);