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

Function CCH_validate

src/jrd/cch.cpp:2401–2421  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2399
2400
2401bool CCH_validate(WIN* window)
2402{
2403/**************************************
2404 *
2405 * C C H _ v a l i d a t e
2406 *
2407 **************************************
2408 *
2409 * Functional description
2410 * Give a page a quick once over looking for unhealthyness.
2411 *
2412 **************************************/
2413 BufferDesc* bdb = window->win_bdb;
2414
2415 // If page is marked for write, checksum is questionable
2416
2417 if ((bdb->bdb_flags & (BDB_dirty | BDB_db_dirty)))
2418 return true;
2419
2420 return (bdb->bdb_buffer->pag_pageno == bdb->bdb_page.getPageNum());
2421}
2422
2423
2424bool CCH_write_all_shadows(thread_db* tdbb, Shadow* shadow, BufferDesc* bdb, Ods::pag* page,

Callers 1

fetch_pageMethod · 0.85

Calls 1

getPageNumMethod · 0.80

Tested by

no test coverage detected