mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 17:23:03 +01:00
Fixed bug #8283 : Assert in ~thread_db() due to not released page buffer
This commit is contained in:
parent
9b1e09c1a3
commit
0c7bfb0022
@ -822,14 +822,16 @@ void BTR_all(thread_db* tdbb, jrd_rel* relation, IndexDescList& idxList, Relatio
|
|||||||
if (!root)
|
if (!root)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Cleanup release_root([&] {
|
||||||
|
CCH_RELEASE(tdbb, &window);
|
||||||
|
});
|
||||||
|
|
||||||
for (USHORT i = 0; i < root->irt_count; i++)
|
for (USHORT i = 0; i < root->irt_count; i++)
|
||||||
{
|
{
|
||||||
index_desc idx;
|
index_desc idx;
|
||||||
if (BTR_description(tdbb, relation, root, &idx, i))
|
if (BTR_description(tdbb, relation, root, &idx, i))
|
||||||
idxList.add(idx);
|
idxList.add(idx);
|
||||||
}
|
}
|
||||||
|
|
||||||
CCH_RELEASE(tdbb, &window);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user