8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 00:03:03 +01:00
This commit is contained in:
dimitr 2008-11-15 09:31:06 +00:00
parent 08e1eca2a4
commit be26f125ad

View File

@ -200,8 +200,7 @@ void DatabaseSnapshot::SharedMemory::garbageCollect(thread_db* tdbb, bool self)
// Temporary lock used to check existence of the given dbb instance
AutoPtr<Lock> temp_lock(FB_NEW_RPT(*tdbb->getDefaultPool(), sizeof(FB_GUID)) Lock());
temp_lock->lck_type = LCK_instance;
temp_lock->lck_owner_handle =
LCK_get_owner_handle(tdbb, temp_lock->lck_type);
temp_lock->lck_owner_handle = LCK_get_owner_handle(tdbb, temp_lock->lck_type);
temp_lock->lck_length = sizeof(FB_GUID);
temp_lock->lck_dbb = dbb;
@ -351,8 +350,7 @@ DatabaseSnapshot* DatabaseSnapshot::create(thread_db* tdbb)
// Create a database snapshot and store it
// in the transaction block
MemoryPool& pool = *transaction->tra_pool;
transaction->tra_db_snapshot =
FB_NEW(pool) DatabaseSnapshot(tdbb, pool);
transaction->tra_db_snapshot = FB_NEW(pool) DatabaseSnapshot(tdbb, pool);
}
return transaction->tra_db_snapshot;