8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 20:43:03 +01:00

Frontported correction to my fix for CORE-2572

This commit is contained in:
alexpeshkoff 2009-08-13 09:07:51 +00:00
parent 79a1cb5618
commit 7456868d0a

View File

@ -2443,7 +2443,7 @@ USHORT PageManager::getTempPageSpaceID(thread_db* tdbb)
Attachment* att = tdbb->getAttachment();
if (!att->att_temp_pg_lock)
{
Lock* lock = FB_NEW_RPT(*dbb->dbb_permanent, sizeof(USHORT)) Lock();
Lock* lock = FB_NEW_RPT(*dbb->dbb_permanent, sizeof(lock->lck_key.lck_long)) Lock();
lock->lck_type = LCK_page_space;
lock->lck_owner_handle = LCK_get_owner_handle(tdbb, lock->lck_type);
lock->lck_parent = dbb->dbb_lock;