mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 18:03:04 +01:00
Merge pull request #6938 from red-soft-ru/4_0_drop_gtt_fix
Fix #6932: GTT's pages are not released while dropping it
This commit is contained in:
commit
0e288902a4
@ -4915,6 +4915,13 @@ static bool delete_relation(thread_db* tdbb, SSHORT phase, DeferredWork* work, j
|
||||
EXT_fini(relation, false);
|
||||
}
|
||||
|
||||
if (relation->isTemporary())
|
||||
{
|
||||
// release pages, allocated for current GTT instance
|
||||
AutoSetRestoreFlag<ULONG> tmpSpace(&tdbb->tdbb_flags, TDBB_use_db_page_space, false);
|
||||
relation->delPages(tdbb);
|
||||
}
|
||||
|
||||
RelationPages* const relPages = relation->getBasePages();
|
||||
if (relPages->rel_index_root) {
|
||||
IDX_delete_indices(tdbb, relation, relPages);
|
||||
|
Loading…
Reference in New Issue
Block a user