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

Method put

src/jrd/PageToBufferMap.h:76–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74 }
75
76 void put(BufferDesc* bdb)
77 {
78 Item* item = m_map.lookup(bdb->bdb_page);
79 if (item)
80 {
81 fb_assert(item->m_bdb != bdb);
82 if (m_list != item)
83 listRemove(item);
84 }
85 else
86 {
87 item = getFreeItem();
88 item->m_page = bdb->bdb_page;
89 m_map.add(item);
90 }
91
92 item->m_bdb = bdb;
93 if (m_list != item)
94 listInsert(item);
95 }
96
97 void remove(PageNumber page)
98 {

Callers

nothing calls this directly

Calls 2

lookupMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected