8
0
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:
Vlad Khorsun 2021-08-30 12:51:54 +03:00 committed by GitHub
commit 0e288902a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);