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

Function PAG_last_page

src/jrd/pag.cpp:1534–1553  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1532
1533
1534SLONG PAG_last_page(thread_db* tdbb)
1535{
1536/**************************************
1537 *
1538 * P A G _ l a s t _ p a g e
1539 *
1540 **************************************
1541 *
1542 * Functional description
1543 * Compute the highest page allocated. This is called by the
1544 * shadow stuff to dump a database.
1545 *
1546 **************************************/
1547
1548 SET_TDBB(tdbb);
1549 Database* dbb = tdbb->getDatabase();
1550 CHECK_DBB(dbb);
1551
1552 return PageSpace::lastUsedPage(dbb);
1553}
1554
1555
1556void PAG_release_page(thread_db* tdbb, const PageNumber& number, const PageNumber& prior_page)

Callers 2

getLastPageMethod · 0.85
SDW_dump_pagesFunction · 0.85

Calls 3

SET_TDBBFunction · 0.85
CHECK_DBBFunction · 0.85
getDatabaseMethod · 0.80

Tested by

no test coverage detected