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

Function print_rhd

src/jrd/validation.cpp:1403–1438  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1401
1402#ifdef DEBUG_VAL_VERBOSE
1403static void print_rhd(USHORT length, const rhd* header)
1404{
1405/**************************************
1406 *
1407 * p r i n t _ r h d
1408 *
1409 **************************************
1410 *
1411 * Functional description
1412 * Debugging routine to print a
1413 * Record Header Data.
1414 *
1415 **************************************/
1416 if (VAL_debug_level)
1417 {
1418 fprintf(stdout, "rhd: len %d TX %" SQUADFORMAT" format %d ",
1419 length, Ods::getTraNum(header), (int) header->rhd_format);
1420 fprintf(stdout, "BP %d/%d flags 0x%x ",
1421 header->rhd_b_page, header->rhd_b_line, header->rhd_flags);
1422 if (header->rhd_flags & rhd_incomplete)
1423 {
1424 const rhdf* fragment = (rhdf*) header;
1425 fprintf(stdout, "FP %d/%d ", fragment->rhdf_f_page, fragment->rhdf_f_line);
1426 }
1427 fprintf(stdout, "%s ", (header->rhd_flags & rhd_deleted) ? "DEL" : " ");
1428 fprintf(stdout, "%s ", (header->rhd_flags & rhd_chain) ? "CHN" : " ");
1429 fprintf(stdout, "%s ", (header->rhd_flags & rhd_fragment) ? "FRG" : " ");
1430 fprintf(stdout, "%s ", (header->rhd_flags & rhd_incomplete) ? "INC" : " ");
1431 fprintf(stdout, "%s ", (header->rhd_flags & rhd_blob) ? "BLB" : " ");
1432 fprintf(stdout, "%s ", (header->rhd_flags & rhd_delta) ? "DLT" : " ");
1433 fprintf(stdout, "%s ", (header->rhd_flags & rhd_large) ? "LRG" : " ");
1434 fprintf(stdout, "%s ", (header->rhd_flags & rhd_damaged) ? "DAM" : " ");
1435 fprintf(stdout, "%s ", (header->rhd_flags & rhd_not_packed) ? "NPK" : " ");
1436 fprintf(stdout, "\n");
1437 }
1438}
1439#endif
1440
1441Validation::RTN Validation::walk_blob(jrd_rel* relation, const blh* header, USHORT length,

Callers 2

walk_data_pageMethod · 0.85
walk_recordMethod · 0.85

Calls 1

getTraNumFunction · 0.85

Tested by

no test coverage detected