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

Method destroy

src/jrd/cch.cpp:5173–5181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5171
5172
5173void BufferControl::destroy(BufferControl* bcb)
5174{
5175 Database* const dbb = bcb->bcb_database;
5176 MemoryPool* const pool = bcb->bcb_bufferpool;
5177 MemoryStats temp_stats;
5178 pool->setStatsGroup(temp_stats);
5179 delete bcb;
5180 dbb->deletePool(pool);
5181}
5182
5183
5184bool BufferDesc::addRef(thread_db* tdbb, SyncType syncType, int wait)

Callers

nothing calls this directly

Calls 2

setStatsGroupMethod · 0.80
deletePoolMethod · 0.45

Tested by

no test coverage detected