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

Method get

src/jrd/PageToBufferMap.h:52–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50 }
51
52 BufferDesc* get(PageNumber page)
53 {
54 Item* item = m_map.lookup(page);
55
56 if (item)
57 {
58 if (item->m_bdb->bdb_page == page)
59 {
60 // Move item into MRU position
61 if (m_list != item)
62 {
63 listRemove(item);
64 listInsert(item);
65 }
66 return item->m_bdb;
67 }
68
69 // bdb was reassigned
70 remove(page);
71 }
72
73 return nullptr;
74 }
75
76 void put(BufferDesc* bdb)
77 {

Callers

nothing calls this directly

Calls 2

removeFunction · 0.85
lookupMethod · 0.45

Tested by

no test coverage detected