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

Method remove

src/jrd/cch.cpp:5483–5497  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5481
5482
5483void BCBHashTable::remove(BufferDesc* bdb)
5484{
5485#ifndef HASH_USE_CDS_LIST
5486 QUE_DELETE(bdb->bdb_que);
5487#else
5488 BdbList& list = m_chains[hash(bdb->bdb_page)];
5489
5490#ifdef DEV_BUILD
5491 auto p = list.get(bdb->bdb_page);
5492 fb_assert(!p.empty() && p->first == bdb->bdb_page && p->second == bdb);
5493#endif
5494
5495 list.erase(bdb->bdb_page);
5496#endif
5497}
5498
5499
5500}; // namespace Jrd

Callers 15

getDirtyBufferMethod · 0.45
getCleanBufferMethod · 0.45
getInstanceMethod · 0.45
handlerMethod · 0.45
destroyMethod · 0.45
setCursorMethod · 0.45
parseMethod · 0.45
executeMethod · 0.45
doReleaseMethod · 0.45
removeStatementMethod · 0.45
shrinkMethod · 0.45
decomposeMethod · 0.45

Calls 5

QUE_DELETEFunction · 0.85
hashFunction · 0.50
getMethod · 0.45
emptyMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected