| 2025 | |
| 2026 | |
| 2027 | static 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 | |
| 2053 | static int index_block_flush(void* ast_object) |
no test coverage detected