| 156 | |
| 157 | |
| 158 | void 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 | |
| 184 | bool Jrd::Attachment::backupStateWriteLock(thread_db* tdbb, SSHORT wait) |
no test coverage detected