From 7456868d0a969ef4edd0b5f15a41d58f9b5d4776 Mon Sep 17 00:00:00 2001 From: alexpeshkoff Date: Thu, 13 Aug 2009 09:07:51 +0000 Subject: [PATCH] Frontported correction to my fix for CORE-2572 --- src/jrd/pag.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jrd/pag.cpp b/src/jrd/pag.cpp index 57f026fe17..5fc2643f91 100644 --- a/src/jrd/pag.cpp +++ b/src/jrd/pag.cpp @@ -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;