| 1277 | #endif |
| 1278 | |
| 1279 | static 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 | |
| 1309 | static void update_dbb_to_sdw(Database* dbb) |
no test coverage detected