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

Function get_root_page

src/jrd/idx.cpp:2027–2050  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2025
2026
2027static PageNumber get_root_page(thread_db* tdbb, jrd_rel* relation)
2028{
2029/**************************************
2030 *
2031 * g e t _ r o o t _ p a g e
2032 *
2033 **************************************
2034 *
2035 * Functional description
2036 * Find the root page for a relation.
2037 *
2038 **************************************/
2039 SET_TDBB(tdbb);
2040
2041 RelationPages* relPages = relation->getPages(tdbb);
2042 SLONG page = relPages->rel_index_root;
2043 if (!page)
2044 {
2045 DPM_scan_pages(tdbb);
2046 page = relPages->rel_index_root;
2047 }
2048
2049 return PageNumber(relPages->rel_pg_space_id, page);
2050}
2051
2052
2053static int index_block_flush(void* ast_object)

Callers 6

IDX_check_accessFunction · 0.85
IDX_check_master_typesFunction · 0.85
IDX_create_indexFunction · 0.85
IDX_delete_indexFunction · 0.85
IDX_garbage_collectFunction · 0.85
check_partner_indexFunction · 0.85

Calls 3

SET_TDBBFunction · 0.85
PageNumberClass · 0.70
getPagesMethod · 0.45

Tested by

no test coverage detected