| 121 | } |
| 122 | |
| 123 | TipCache::~TipCache() |
| 124 | { |
| 125 | // Make sure that object is finalized before being deleted |
| 126 | fb_assert(!m_blocks_memory.getFirst()); |
| 127 | fb_assert(!m_snapshots); |
| 128 | fb_assert(!m_tpcHeader); |
| 129 | fb_assert(m_transactionsPerBlock == 0); |
| 130 | fb_assert((!m_lock.hasData()) || m_lock->lck_logical == LCK_none); |
| 131 | |
| 132 | // Avoid worse case |
| 133 | if (m_lock.hasData() && (m_lock->lck_logical != LCK_none)) |
| 134 | LCK_release(JRD_get_thread_data(), m_lock); |
| 135 | } |
| 136 | |
| 137 | void TipCache::finalizeTpc(thread_db* tdbb) |
| 138 | { |
nothing calls this directly
no test coverage detected