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

Function copy_header

src/jrd/sdw.cpp:1279–1306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1277#endif
1278
1279static void copy_header(thread_db* tdbb)
1280{
1281/**************************************
1282 *
1283 * c o p y _ h e a d e r
1284 *
1285 **************************************
1286 *
1287 * Functional description
1288 * Fetch the header page from the database
1289 * and write it to the shadow file. This is
1290 * done so that if this shadow is extended,
1291 * the header page will be there for writing
1292 * the name of the extend file.
1293 *
1294 **************************************/
1295 SET_TDBB(tdbb);
1296 Database* dbb = tdbb->getDatabase();
1297 CHECK_DBB(dbb);
1298
1299 // get the database header page and write it out --
1300 // CCH will take care of modifying it
1301
1302 WIN window(HEADER_PAGE_NUMBER);
1303 CCH_FETCH(tdbb, &window, LCK_write, pag_header);
1304 CCH_MARK_MUST_WRITE(tdbb, &window);
1305 CCH_RELEASE(tdbb, &window);
1306}
1307
1308
1309static void update_dbb_to_sdw(Database* dbb)

Callers 1

SDW_add_fileFunction · 0.85

Calls 6

SET_TDBBFunction · 0.85
CHECK_DBBFunction · 0.85
CCH_FETCHFunction · 0.85
CCH_MARK_MUST_WRITEFunction · 0.85
CCH_RELEASEFunction · 0.85
getDatabaseMethod · 0.80

Tested by

no test coverage detected