8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 06:03:02 +01:00

GTT related bugfix

This commit is contained in:
hvlad 2007-01-27 15:40:12 +00:00
parent 71f8c047be
commit 3843604cd0

View File

@ -6047,14 +6047,17 @@ static void release_attachment(Attachment* attachment)
}
#ifdef SUPERSERVER
vec<jrd_rel*>& rels = *dbb->dbb_relations;
for (size_t i = 1; i < rels.count(); i++)
if (dbb->dbb_relations)
{
jrd_rel* relation = rels[i];
if (relation && (relation->rel_flags & REL_temp_conn) &&
!(relation->rel_flags & (REL_deleted | REL_deleting)) )
vec<jrd_rel*>& rels = *dbb->dbb_relations;
for (size_t i = 1; i < rels.count(); i++)
{
relation->delPages(tdbb);
jrd_rel* relation = rels[i];
if (relation && (relation->rel_flags & REL_temp_conn) &&
!(relation->rel_flags & (REL_deleted | REL_deleting)) )
{
relation->delPages(tdbb);
}
}
}
#endif