MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / ~TipCache

Method ~TipCache

src/jrd/tpc.cpp:123–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121}
122
123TipCache::~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
137void TipCache::finalizeTpc(thread_db* tdbb)
138{

Callers

nothing calls this directly

Calls 4

LCK_releaseFunction · 0.85
JRD_get_thread_dataFunction · 0.85
getFirstMethod · 0.45
hasDataMethod · 0.45

Tested by

no test coverage detected