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

Method walk_generators

src/jrd/validation.cpp:1925–1958  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1923}
1924
1925void Validation::walk_generators()
1926{
1927/**************************************
1928 *
1929 * w a l k _ g e n e r a t o r s
1930 *
1931 **************************************
1932 *
1933 * Functional description
1934 * Walk the page inventory pages.
1935 *
1936 **************************************/
1937 Database* dbb = vdr_tdbb->getDatabase();
1938
1939 WIN window(DB_PAGE_SPACE, -1);
1940
1941 if (const auto idsCount = dbb->getKnownPagesCount(pag_ids))
1942 {
1943 for (ULONG sequence = 0; sequence < idsCount; sequence++)
1944 {
1945 if (const auto pageNumber = dbb->getKnownPage(pag_ids, sequence))
1946 {
1947#ifdef DEBUG_VAL_VERBOSE
1948 if (VAL_debug_level)
1949 fprintf(stdout, "walk_generator: page %d\n", pageNumber);
1950#endif
1951 // It doesn't make a difference generator_page or pointer_page because it's not used.
1952 generator_page* page = NULL;
1953 fetch_page(true, pageNumber, pag_ids, &window, &page);
1954 release_page(&window);
1955 }
1956 }
1957 }
1958}
1959
1960void Validation::walk_header(ULONG page_num)
1961{

Callers

nothing calls this directly

Calls 3

getDatabaseMethod · 0.80
getKnownPagesCountMethod · 0.80
getKnownPageMethod · 0.80

Tested by

no test coverage detected