MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / deletePool

Method deletePool

src/jrd/Attachment.cpp:158–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156
157
158void Jrd::Attachment::deletePool(MemoryPool* pool)
159{
160 if (pool)
161 {
162 att_pools.findAndRemove(pool);
163
164#ifdef DEBUG_LCK_LIST
165 // hvlad: this could be slow, use only when absolutely necessary
166 for (Lock* lock = att_long_locks; lock; )
167 {
168 Lock* next = lock->lck_next;
169 if (BtrPageGCLock::checkPool(lock, pool))
170 {
171 gds__log("DEBUG_LCK_LIST: found not detached lock 0x%p in deleting pool 0x%p", lock, pool);
172
173 //delete lock;
174 lock->setLockAttachment(NULL);
175 }
176 lock = next;
177 }
178#endif
179 MemoryPool::deletePool(pool);
180 }
181}
182
183
184bool Jrd::Attachment::backupStateWriteLock(thread_db* tdbb, SSHORT wait)

Callers 2

createMethod · 0.45
destroyMethod · 0.45

Calls 2

setLockAttachmentMethod · 0.80
findAndRemoveMethod · 0.45

Tested by

no test coverage detected