mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 21:23:03 +01:00
Correct formats
This commit is contained in:
parent
7eb971d887
commit
f76755974d
132
src/jrd/dpm.epp
132
src/jrd/dpm.epp
@ -155,7 +155,8 @@ void DPM_backout( TDBB tdbb, RPB * rpb)
|
||||
ib_printf("DPM_backout (rpb %"SLONGFORMAT")\n", rpb->rpb_number);
|
||||
if (debug_flag > DEBUG_WRITES_INFO)
|
||||
ib_printf
|
||||
(" record %"SLONGFORMAT":%d transaction %"SLONGFORMAT" back %"SLONGFORMAT":%d fragment %"SLONGFORMAT":%d flags %d\n",
|
||||
(" record %"SLONGFORMAT":%d transaction %"SLONGFORMAT" back %"
|
||||
SLONGFORMAT":%d fragment %"SLONGFORMAT":%d flags %d\n",
|
||||
rpb->rpb_page, rpb->rpb_line, rpb->rpb_transaction,
|
||||
rpb->rpb_b_page, rpb->rpb_b_line, rpb->rpb_f_page,
|
||||
rpb->rpb_f_line, rpb->rpb_flags);
|
||||
@ -179,9 +180,10 @@ void DPM_backout( TDBB tdbb, RPB * rpb)
|
||||
#ifdef VIO_DEBUG
|
||||
if (debug_flag > DEBUG_WRITES_INFO)
|
||||
ib_printf
|
||||
(" old record %"SLONGFORMAT":%d, new record %"SLONGFORMAT":%d, old dpg_count %d, ",
|
||||
rpb->rpb_page, rpb->rpb_line, rpb->rpb_b_page, rpb->rpb_b_line,
|
||||
page->dpg_count);
|
||||
(" old record %"SLONGFORMAT":%d, new record %"SLONGFORMAT
|
||||
":%d, old dpg_count %d, ",
|
||||
rpb->rpb_page, rpb->rpb_line, rpb->rpb_b_page,
|
||||
rpb->rpb_b_line, page->dpg_count);
|
||||
#endif
|
||||
|
||||
/* Check to see if the index got shorter */
|
||||
@ -240,17 +242,20 @@ int DPM_chain( TDBB tdbb, RPB * org_rpb, RPB * new_rpb)
|
||||
|
||||
#ifdef VIO_DEBUG
|
||||
if (debug_flag > DEBUG_WRITES)
|
||||
ib_printf("DPM_chain (org_rpb %"SLONGFORMAT", new_rpb %"SLONGFORMAT")\n", org_rpb->rpb_number,
|
||||
new_rpb ? new_rpb->rpb_number : 0);
|
||||
ib_printf("DPM_chain (org_rpb %"SLONGFORMAT", new_rpb %"
|
||||
SLONGFORMAT")\n", org_rpb->rpb_number,
|
||||
new_rpb ? new_rpb->rpb_number : 0);
|
||||
if (debug_flag > DEBUG_WRITES_INFO) {
|
||||
ib_printf
|
||||
(" org record %"SLONGFORMAT":%d transaction %"SLONGFORMAT" back %"SLONGFORMAT":%d fragment %"SLONGFORMAT":%d flags %d\n",
|
||||
(" org record %"SLONGFORMAT":%d transaction %"SLONGFORMAT
|
||||
" back %"SLONGFORMAT":%d fragment %"SLONGFORMAT":%d flags %d\n",
|
||||
org_rpb->rpb_page, org_rpb->rpb_line, org_rpb->rpb_transaction,
|
||||
org_rpb->rpb_b_page, org_rpb->rpb_b_line, org_rpb->rpb_f_page,
|
||||
org_rpb->rpb_f_line, org_rpb->rpb_flags);
|
||||
|
||||
if (new_rpb)
|
||||
ib_printf(" new record length %d transaction %"SLONGFORMAT" flags %d\n",
|
||||
ib_printf(" new record length %d transaction %"SLONGFORMAT
|
||||
" flags %d\n",
|
||||
new_rpb->rpb_length, new_rpb->rpb_transaction,
|
||||
new_rpb->rpb_flags);
|
||||
}
|
||||
@ -572,7 +577,8 @@ SLONG DPM_data_pages(TDBB tdbb, JRD_REL relation)
|
||||
for (sequence = 0;; sequence++) {
|
||||
if (!
|
||||
(ppage =
|
||||
get_pointer_page(tdbb, relation, &window, sequence, LCK_read))) BUGCHECK(243); /* msg 243 missing pointer page in DPM_data_pages */
|
||||
get_pointer_page(tdbb, relation, &window, sequence, LCK_read)))
|
||||
BUGCHECK(243); /* msg 243 missing pointer page in DPM_data_pages */
|
||||
page = ppage->ppg_page;
|
||||
end_page = page + ppage->ppg_count;
|
||||
while (page < end_page)
|
||||
@ -632,11 +638,12 @@ void DPM_delete( TDBB tdbb, RPB * rpb, SLONG prior_page)
|
||||
|
||||
#ifdef VIO_DEBUG
|
||||
if (debug_flag > DEBUG_WRITES)
|
||||
ib_printf("DPM_delete (rpb %"SLONGFORMAT", prior_page %"SLONGFORMAT")\n", rpb->rpb_number,
|
||||
prior_page);
|
||||
ib_printf("DPM_delete (rpb %"SLONGFORMAT", prior_page %"SLONGFORMAT
|
||||
")\n", rpb->rpb_number, prior_page);
|
||||
if (debug_flag > DEBUG_WRITES_INFO)
|
||||
ib_printf
|
||||
(" record %"SLONGFORMAT":%d transaction %"SLONGFORMAT" back %"SLONGFORMAT":%d fragment %"SLONGFORMAT":%d flags %d\n",
|
||||
(" record %"SLONGFORMAT":%d transaction %"SLONGFORMAT" back %"
|
||||
SLONGFORMAT":%d fragment %"SLONGFORMAT":%d flags %d\n",
|
||||
rpb->rpb_page, rpb->rpb_line, rpb->rpb_transaction,
|
||||
rpb->rpb_b_page, rpb->rpb_b_line, rpb->rpb_f_page,
|
||||
rpb->rpb_f_line, rpb->rpb_flags);
|
||||
@ -719,7 +726,8 @@ void DPM_delete( TDBB tdbb, RPB * rpb, SLONG prior_page)
|
||||
if (!
|
||||
(ppage =
|
||||
get_pointer_page(tdbb, rpb->rpb_relation, &pwindow, pp_sequence,
|
||||
LCK_write))) BUGCHECK(245); /* msg 245 pointer page disappeared in DPM_delete */
|
||||
LCK_write)))
|
||||
BUGCHECK(245); /* msg 245 pointer page disappeared in DPM_delete */
|
||||
|
||||
|
||||
if (slot >= ppage->ppg_count ||
|
||||
@ -748,7 +756,8 @@ void DPM_delete( TDBB tdbb, RPB * rpb, SLONG prior_page)
|
||||
#ifdef VIO_DEBUG
|
||||
if (debug_flag > DEBUG_WRITES_INFO)
|
||||
ib_printf
|
||||
("\tDPM_delete: page %"SLONGFORMAT" is empty and about to be released from relation %d\n",
|
||||
("\tDPM_delete: page %"SLONGFORMAT
|
||||
" is empty and about to be released from relation %d\n",
|
||||
window->win_page, rpb->rpb_relation->rel_id);
|
||||
#endif
|
||||
|
||||
@ -933,7 +942,8 @@ BOOLEAN DPM_fetch(TDBB tdbb, RPB * rpb, USHORT lock)
|
||||
#ifdef VIO_DEBUG
|
||||
if (debug_flag > DEBUG_READS_INFO)
|
||||
ib_printf
|
||||
(" record %"SLONGFORMAT":%d transaction %"SLONGFORMAT" back %"SLONGFORMAT":%d fragment %"SLONGFORMAT":%d flags %d\n",
|
||||
(" record %"SLONGFORMAT":%d transaction %"SLONGFORMAT" back %"
|
||||
SLONGFORMAT":%d fragment %"SLONGFORMAT":%d flags %d\n",
|
||||
rpb->rpb_page, rpb->rpb_line, rpb->rpb_transaction,
|
||||
rpb->rpb_b_page, rpb->rpb_b_line, rpb->rpb_f_page,
|
||||
rpb->rpb_f_line, rpb->rpb_flags);
|
||||
@ -983,7 +993,8 @@ SSHORT DPM_fetch_back(TDBB tdbb,
|
||||
}
|
||||
if (debug_flag > DEBUG_READS_INFO)
|
||||
{
|
||||
ib_printf(" record %"SLONGFORMAT":%d transaction %"SLONGFORMAT" back %"SLONGFORMAT":%d\n",
|
||||
ib_printf(" record %"SLONGFORMAT":%d transaction %"SLONGFORMAT
|
||||
" back %"SLONGFORMAT":%d\n",
|
||||
rpb->rpb_page, rpb->rpb_line, rpb->rpb_transaction,
|
||||
rpb->rpb_b_page, rpb->rpb_b_line);
|
||||
}
|
||||
@ -1013,7 +1024,9 @@ SSHORT DPM_fetch_back(TDBB tdbb,
|
||||
#ifdef VIO_DEBUG
|
||||
if (debug_flag > DEBUG_READS_INFO)
|
||||
{
|
||||
ib_printf(" record fetched %"SLONGFORMAT":%d transaction %"SLONGFORMAT" back %"SLONGFORMAT":%d fragment %"SLONGFORMAT":%d flags %d\n",
|
||||
ib_printf(" record fetched %"SLONGFORMAT":%d transaction %"
|
||||
SLONGFORMAT" back %"SLONGFORMAT":%d fragment %"SLONGFORMAT
|
||||
":%d flags %d\n",
|
||||
rpb->rpb_page, rpb->rpb_line, rpb->rpb_transaction,
|
||||
rpb->rpb_b_page, rpb->rpb_b_line, rpb->rpb_f_page,
|
||||
rpb->rpb_f_line, rpb->rpb_flags);
|
||||
@ -1048,7 +1061,8 @@ void DPM_fetch_fragment( TDBB tdbb, RPB * rpb, USHORT lock)
|
||||
ib_printf("DPM_fetch_fragment (rpb %"SLONGFORMAT", lock %d)\n", rpb->rpb_number,
|
||||
lock);
|
||||
if (debug_flag > DEBUG_READS_INFO)
|
||||
ib_printf(" record %"SLONGFORMAT":%d transaction %"SLONGFORMAT" back %"SLONGFORMAT":%d\n",
|
||||
ib_printf(" record %"SLONGFORMAT":%d transaction %"SLONGFORMAT
|
||||
" back %"SLONGFORMAT":%d\n",
|
||||
rpb->rpb_page, rpb->rpb_line, rpb->rpb_transaction,
|
||||
rpb->rpb_b_page, rpb->rpb_b_line);
|
||||
#endif
|
||||
@ -1066,7 +1080,8 @@ void DPM_fetch_fragment( TDBB tdbb, RPB * rpb, USHORT lock)
|
||||
#ifdef VIO_DEBUG
|
||||
if (debug_flag > DEBUG_READS_INFO)
|
||||
ib_printf
|
||||
(" record fetched %"SLONGFORMAT":%d transaction %"SLONGFORMAT" back %"SLONGFORMAT":%d fragment %"SLONGFORMAT":%d flags %d\n",
|
||||
(" record fetched %"SLONGFORMAT":%d transaction %"SLONGFORMAT
|
||||
" back %"SLONGFORMAT":%d fragment %"SLONGFORMAT":%d flags %d\n",
|
||||
rpb->rpb_page, rpb->rpb_line, rpb->rpb_transaction,
|
||||
rpb->rpb_b_page, rpb->rpb_b_line, rpb->rpb_f_page,
|
||||
rpb->rpb_f_line, rpb->rpb_flags);
|
||||
@ -1253,7 +1268,7 @@ int DPM_get( TDBB tdbb, RPB * rpb, SSHORT lock_type)
|
||||
|
||||
#ifdef VIO_DEBUG
|
||||
if (debug_flag > DEBUG_READS_INFO)
|
||||
ib_printf(" record %d:%d\n", page->ppg_page[slot], line);
|
||||
ib_printf(" record %"SLONGFORMAT":%d\n", page->ppg_page[slot], line);
|
||||
#endif
|
||||
|
||||
if ( (page_number = page->ppg_page[slot]) ) {
|
||||
@ -1308,7 +1323,8 @@ ULONG DPM_get_blob(TDBB tdbb,
|
||||
#ifdef VIO_DEBUG
|
||||
if (debug_flag > DEBUG_READS)
|
||||
ib_printf
|
||||
("DPM_get_blob (blob, record_number %d, delete_flag %d, prior_page %"SLONGFORMAT")\n",
|
||||
("DPM_get_blob (blob, record_number %"ULONGFORMAT
|
||||
", delete_flag %d, prior_page %"SLONGFORMAT")\n",
|
||||
record_number, delete_flag, prior_page);
|
||||
#endif
|
||||
|
||||
@ -1514,7 +1530,8 @@ BOOLEAN DPM_next(TDBB tdbb,
|
||||
if (!
|
||||
(ppage =
|
||||
get_pointer_page(tdbb, rpb->rpb_relation, window, pp_sequence,
|
||||
LCK_read))) BUGCHECK(249); /* msg 249 pointer page vanished from DPM_next */
|
||||
LCK_read)))
|
||||
BUGCHECK(249); /* msg 249 pointer page vanished from DPM_next */
|
||||
if (backwards && slot >= ppage->ppg_count)
|
||||
slot = ppage->ppg_count - 1;
|
||||
for (; slot >= 0 && slot < ppage->ppg_count;) {
|
||||
@ -1580,7 +1597,8 @@ BOOLEAN DPM_next(TDBB tdbb,
|
||||
if (!
|
||||
(ppage =
|
||||
get_pointer_page(tdbb, rpb->rpb_relation, window,
|
||||
pp_sequence, LCK_read))) BUGCHECK(249); /* msg 249 pointer page vanished from DPM_next */
|
||||
pp_sequence, LCK_read)))
|
||||
BUGCHECK(249); /* msg 249 pointer page vanished from DPM_next */
|
||||
}
|
||||
|
||||
if (onepage) {
|
||||
@ -1641,8 +1659,9 @@ void DPM_pages(
|
||||
|
||||
#ifdef VIO_DEBUG
|
||||
if (debug_flag > DEBUG_TRACE_ALL)
|
||||
ib_printf("DPM_pages (rel_id %d, type %d, sequence %d, page %"SLONGFORMAT")\n",
|
||||
rel_id, type, sequence, page);
|
||||
ib_printf("DPM_pages (rel_id %d, type %d, sequence %"ULONGFORMAT
|
||||
", page %"SLONGFORMAT")\n",rel_id, type, sequence
|
||||
, page);
|
||||
#endif
|
||||
|
||||
request = (BLK) CMP_find_request(tdbb, irq_s_pages, IRQ_REQUESTS);
|
||||
@ -1699,7 +1718,8 @@ SLONG DPM_prefetch_bitmap(TDBB tdbb, JRD_REL relation, SBM bitmap, SLONG number)
|
||||
|
||||
if (!
|
||||
(ppage =
|
||||
get_pointer_page(tdbb, relation, &window, pp_sequence, LCK_read))) BUGCHECK(249); /* msg 249 pointer page vanished from DPM_prefetch_bitmap */
|
||||
get_pointer_page(tdbb, relation, &window, pp_sequence, LCK_read)))
|
||||
BUGCHECK(249); /* msg 249 pointer page vanished from DPM_prefetch_bitmap */
|
||||
pages[i] = (slot >= 0
|
||||
&& slot < ppage->ppg_count) ? ppage->ppg_page[slot] : 0;
|
||||
CCH_RELEASE(tdbb, &window);
|
||||
@ -1832,11 +1852,12 @@ void DPM_store( TDBB tdbb, RPB * rpb, LLS * stack, USHORT type)
|
||||
|
||||
#ifdef VIO_DEBUG
|
||||
if (debug_flag > DEBUG_WRITES)
|
||||
ib_printf("DPM_store (rpb %"SLONGFORMAT", stack, type %d)\n", rpb->rpb_number,
|
||||
type);
|
||||
ib_printf("DPM_store (rpb %"SLONGFORMAT", stack, type %d)\n",
|
||||
rpb->rpb_number, type);
|
||||
if (debug_flag > DEBUG_WRITES_INFO)
|
||||
ib_printf
|
||||
(" record to store %"SLONGFORMAT":%d transaction %"SLONGFORMAT" back %"SLONGFORMAT":%d fragment %"SLONGFORMAT":%d flags %d\n",
|
||||
(" record to store %"SLONGFORMAT":%d transaction %"SLONGFORMAT
|
||||
" back %"SLONGFORMAT":%d fragment %"SLONGFORMAT":%d flags %d\n",
|
||||
rpb->rpb_page, rpb->rpb_line, rpb->rpb_transaction,
|
||||
rpb->rpb_b_page, rpb->rpb_b_line, rpb->rpb_f_page,
|
||||
rpb->rpb_f_line, rpb->rpb_flags);
|
||||
@ -1871,7 +1892,9 @@ void DPM_store( TDBB tdbb, RPB * rpb, LLS * stack, USHORT type)
|
||||
#ifdef VIO_DEBUG
|
||||
if (debug_flag > DEBUG_WRITES_INFO)
|
||||
ib_printf
|
||||
(" record %"SLONGFORMAT":%d, length %"SLONGFORMAT", rpb_flags %d, f_page %"SLONGFORMAT":%d, b_page %"SLONGFORMAT":%d\n",
|
||||
(" record %"SLONGFORMAT":%d, length %"SLONGFORMAT
|
||||
", rpb_flags %d, f_page %"SLONGFORMAT":%d, b_page %"SLONGFORMAT
|
||||
":%d\n",
|
||||
rpb->rpb_page, rpb->rpb_line, length, rpb->rpb_flags,
|
||||
rpb->rpb_f_page, rpb->rpb_f_line, rpb->rpb_b_page,
|
||||
rpb->rpb_b_line);
|
||||
@ -2028,11 +2051,13 @@ void DPM_rewrite_header( TDBB tdbb, RPB * rpb)
|
||||
#ifdef VIO_DEBUG
|
||||
if (debug_flag > DEBUG_WRITES_INFO) {
|
||||
ib_printf
|
||||
(" old flags %d, old transaction %"SLONGFORMAT", old format %d, old back record %"SLONGFORMAT":%d\n",
|
||||
(" old flags %d, old transaction %"SLONGFORMAT
|
||||
", old format %d, old back record %"SLONGFORMAT":%d\n",
|
||||
header->rhd_flags, header->rhd_transaction, header->rhd_format,
|
||||
header->rhd_b_page, header->rhd_b_line);
|
||||
ib_printf
|
||||
(" new flags %d, new transaction %"SLONGFORMAT", new format %d, new back record %"SLONGFORMAT":%d\n",
|
||||
(" new flags %d, new transaction %"SLONGFORMAT
|
||||
", new format %d, new back record %"SLONGFORMAT":%d\n",
|
||||
rpb->rpb_flags, rpb->rpb_transaction, rpb->rpb_format_number,
|
||||
rpb->rpb_b_page, rpb->rpb_b_line);
|
||||
}
|
||||
@ -2080,7 +2105,8 @@ void DPM_update( TDBB tdbb, RPB * rpb, LLS * stack, JRD_TRA transaction)
|
||||
rpb->rpb_number, transaction ? transaction->tra_number : 0);
|
||||
if (debug_flag > DEBUG_WRITES_INFO)
|
||||
ib_printf
|
||||
(" record %"SLONGFORMAT":%d transaction %"SLONGFORMAT" back %"SLONGFORMAT":%d fragment %"SLONGFORMAT":%d flags %d\n",
|
||||
(" record %"SLONGFORMAT":%d transaction %"SLONGFORMAT" back %"
|
||||
SLONGFORMAT":%d fragment %"SLONGFORMAT":%d flags %d\n",
|
||||
rpb->rpb_page, rpb->rpb_line, rpb->rpb_transaction,
|
||||
rpb->rpb_b_page, rpb->rpb_b_line, rpb->rpb_f_page,
|
||||
rpb->rpb_f_line, rpb->rpb_flags);
|
||||
@ -2148,7 +2174,9 @@ void DPM_update( TDBB tdbb, RPB * rpb, LLS * stack, JRD_TRA transaction)
|
||||
#ifdef VIO_DEBUG
|
||||
if (debug_flag > DEBUG_WRITES_INFO)
|
||||
ib_printf
|
||||
(" record %"SLONGFORMAT":%d, dpg_length %d, rpb_flags %d, rpb_f record %"SLONGFORMAT":%d, rpb_b record %"SLONGFORMAT":%d\n",
|
||||
(" record %"SLONGFORMAT
|
||||
":%d, dpg_length %d, rpb_flags %d, rpb_f record %"SLONGFORMAT
|
||||
":%d, rpb_b record %"SLONGFORMAT":%d\n",
|
||||
rpb->rpb_page, rpb->rpb_line, page->dpg_rpt[slot].dpg_length,
|
||||
rpb->rpb_flags, rpb->rpb_f_page, rpb->rpb_f_line,
|
||||
rpb->rpb_b_page, rpb->rpb_b_line);
|
||||
@ -2194,7 +2222,8 @@ static void delete_tail( TDBB tdbb, RHDF header, USHORT length)
|
||||
if (debug_flag > DEBUG_WRITES)
|
||||
ib_printf("delete_tail (header, length)\n");
|
||||
if (debug_flag > DEBUG_WRITES_INFO)
|
||||
ib_printf(" transaction %"SLONGFORMAT" flags %d fragment %"SLONGFORMAT":%d back %"SLONGFORMAT":%d\n",
|
||||
ib_printf(" transaction %"SLONGFORMAT" flags %d fragment %"
|
||||
SLONGFORMAT":%d back %"SLONGFORMAT":%d\n",
|
||||
header->rhdf_transaction, header->rhdf_flags,
|
||||
header->rhdf_f_page, header->rhdf_f_line,
|
||||
header->rhdf_b_page, header->rhdf_b_line);
|
||||
@ -2320,12 +2349,14 @@ static void fragment(
|
||||
#ifdef VIO_DEBUG
|
||||
if (debug_flag > DEBUG_WRITES)
|
||||
ib_printf
|
||||
("fragment (rpb %"SLONGFORMAT", available_space %d, dcc, length %d, transaction %d)\n",
|
||||
("fragment (rpb %"SLONGFORMAT
|
||||
", available_space %d, dcc, length %d, transaction %d)\n",
|
||||
rpb->rpb_number, available_space, length,
|
||||
transaction ? transaction->tra_number : 0);
|
||||
if (debug_flag > DEBUG_WRITES_INFO)
|
||||
ib_printf
|
||||
(" record %"SLONGFORMAT":%d transaction %"SLONGFORMAT" back %"SLONGFORMAT":%d fragment %"SLONGFORMAT":%d flags %d\n",
|
||||
(" record %"SLONGFORMAT":%d transaction %"SLONGFORMAT" back %"
|
||||
SLONGFORMAT":%d fragment %"SLONGFORMAT":%d flags %d\n",
|
||||
rpb->rpb_page, rpb->rpb_line, rpb->rpb_transaction,
|
||||
rpb->rpb_b_page, rpb->rpb_b_line, rpb->rpb_f_page,
|
||||
rpb->rpb_f_line, rpb->rpb_flags);
|
||||
@ -2374,7 +2405,9 @@ static void fragment(
|
||||
#ifdef VIO_DEBUG
|
||||
if (debug_flag > DEBUG_WRITES_INFO)
|
||||
ib_printf
|
||||
(" rhdf_transaction %"SLONGFORMAT", window record %"SLONGFORMAT":%d, available_space %d, rhdf_flags %d, rhdf_f record %"SLONGFORMAT":%d, rhdf_b record %"SLONGFORMAT":%d\n",
|
||||
(" rhdf_transaction %"SLONGFORMAT", window record %"SLONGFORMAT
|
||||
":%d, available_space %d, rhdf_flags %d, rhdf_f record %"
|
||||
SLONGFORMAT":%d, rhdf_b record %"SLONGFORMAT":%d\n",
|
||||
header->rhdf_transaction, window->win_page, line,
|
||||
available_space, header->rhdf_flags, header->rhdf_f_page,
|
||||
header->rhdf_f_line, header->rhdf_b_page, header->rhdf_b_line);
|
||||
@ -2436,7 +2469,9 @@ static void fragment(
|
||||
if (debug_flag > DEBUG_WRITES_INFO) {
|
||||
ib_printf(" fragment head \n");
|
||||
ib_printf
|
||||
(" rhdf_trans %"SLONGFORMAT", window record %"SLONGFORMAT":%d, dpg_length %d\n\trhdf_flags %d, rhdf_f record %"SLONGFORMAT":%d, rhdf_b record %"SLONGFORMAT":%d\n",
|
||||
(" rhdf_trans %"SLONGFORMAT", window record %"SLONGFORMAT
|
||||
":%d, dpg_length %d\n\trhdf_flags %d, rhdf_f record %"SLONGFORMAT
|
||||
":%d, rhdf_b record %"SLONGFORMAT":%d\n",
|
||||
header->rhdf_transaction, window->win_page, line,
|
||||
page->dpg_rpt[line].dpg_length, header->rhdf_flags,
|
||||
header->rhdf_f_page, header->rhdf_f_line, header->rhdf_b_page,
|
||||
@ -2515,7 +2550,8 @@ static void extend_relation( TDBB tdbb, JRD_REL relation, WIN * window)
|
||||
if (!
|
||||
(ppage =
|
||||
get_pointer_page(tdbb, relation, &pp_window, pp_sequence,
|
||||
LCK_write))) BUGCHECK(253); /* msg 253 pointer page vanished from extend_relation */
|
||||
LCK_write)))
|
||||
BUGCHECK(253); /* msg 253 pointer page vanished from extend_relation */
|
||||
slots = ppage->ppg_page;
|
||||
for (slot = 0; slot < ppage->ppg_count; slot++, slots++)
|
||||
if (*slots == 0)
|
||||
@ -2822,7 +2858,8 @@ static PPG get_pointer_page(
|
||||
page = (PPG) CCH_FETCH(tdbb, window, lock, pag_pointer);
|
||||
|
||||
if (page->ppg_relation != relation->rel_id ||
|
||||
page->ppg_sequence != sequence) CORRUPT(259); /* msg 259 bad pointer page */
|
||||
page->ppg_sequence != sequence)
|
||||
CORRUPT(259); /* msg 259 bad pointer page */
|
||||
|
||||
return page;
|
||||
}
|
||||
@ -2914,7 +2951,8 @@ static RHD locate_space(
|
||||
relation->rel_data_space = pp_sequence;
|
||||
if (!
|
||||
(ppage =
|
||||
get_pointer_page(tdbb, relation, window, pp_sequence, LCK_read))) BUGCHECK(254); /* msg 254 pointer page vanished from relation list in locate_space */
|
||||
get_pointer_page(tdbb, relation, window, pp_sequence, LCK_read)))
|
||||
BUGCHECK(254); /* msg 254 pointer page vanished from relation list in locate_space */
|
||||
pp_number = window->win_page;
|
||||
bits = (UCHAR *) (ppage->ppg_page + dbb->dbb_dp_per_pp);
|
||||
for (slot = ppage->ppg_min_space; slot < ppage->ppg_count; slot++)
|
||||
@ -3013,7 +3051,8 @@ static void mark_full( TDBB tdbb, RPB * rpb)
|
||||
if (!
|
||||
(ppage =
|
||||
get_pointer_page(tdbb, relation, &pp_window, pp_sequence,
|
||||
LCK_write))) BUGCHECK(256); /* msg 256 pointer page vanished from mark_full */
|
||||
LCK_write)))
|
||||
BUGCHECK(256); /* msg 256 pointer page vanished from mark_full */
|
||||
|
||||
/* If data page has been deleted from relation then there's nothing
|
||||
left to do. */
|
||||
@ -3200,7 +3239,8 @@ static void store_big_record(
|
||||
if (debug_flag > DEBUG_WRITES_INFO) {
|
||||
ib_printf(" back portion\n");
|
||||
ib_printf
|
||||
(" rpb_window page %"SLONGFORMAT", max_data %d, \n\trhdf_flags %d, prior %"SLONGFORMAT"\n",
|
||||
(" rpb_window page %"SLONGFORMAT
|
||||
", max_data %d, \n\trhdf_flags %d, prior %"SLONGFORMAT"\n",
|
||||
rpb->rpb_window.win_page, max_data, header->rhdf_flags,
|
||||
prior);
|
||||
}
|
||||
@ -3246,7 +3286,9 @@ static void store_big_record(
|
||||
if (debug_flag > DEBUG_WRITES_INFO) {
|
||||
ib_printf(" front part\n");
|
||||
ib_printf
|
||||
(" rhdf_trans %"SLONGFORMAT", rpb_window record %"SLONGFORMAT":%d, dpg_length %d \n\trhdf_flags %d, rhdf_f record %"SLONGFORMAT":%d, rhdf_b record %"SLONGFORMAT":%d\n",
|
||||
(" rhdf_trans %"SLONGFORMAT", rpb_window record %"SLONGFORMAT
|
||||
":%d, dpg_length %d \n\trhdf_flags %d, rhdf_f record %"SLONGFORMAT
|
||||
":%d, rhdf_b record %"SLONGFORMAT":%d\n",
|
||||
header->rhdf_transaction, rpb->rpb_window.win_page,
|
||||
rpb->rpb_line, page->dpg_rpt[rpb->rpb_line].dpg_length,
|
||||
header->rhdf_flags, header->rhdf_f_page, header->rhdf_f_line,
|
||||
|
@ -4383,9 +4383,9 @@ static void init(void)
|
||||
|
||||
IB_FILE *file = ib_fopen(DBG_MEM_FILE, "r");
|
||||
if (file) {
|
||||
ib_fscanf(file, "%ld", &gds_bug_alloc_count);
|
||||
ib_fscanf(file, "%ld", &gds_bug_free_count);
|
||||
PRINTF("gds_bug_alloc_count=%d, gds_bug_free_count=%d\n",
|
||||
ib_fscanf(file, "%lu", &gds_bug_alloc_count);
|
||||
ib_fscanf(file, "%lu", &gds_bug_free_count);
|
||||
PRINTF("gds_bug_alloc_count=%"ULONGFORMAT", gds_bug_free_count=%"ULONGFORMAT"\n",
|
||||
gds_bug_alloc_count, gds_bug_free_count);
|
||||
ib_fclose(file);
|
||||
}
|
||||
@ -4772,25 +4772,25 @@ static void freemap(int cod)
|
||||
for (next = &pool; (free_blk = *next) != NULL; next = &(*next)->free_next) {
|
||||
++free_list_count;
|
||||
total_free += free_blk->free_length;
|
||||
ib_printf("%x\t\t\t%d\t\t\t%x\n", (UCHAR *) free_blk,
|
||||
ib_printf("%x\t\t\t%"SLONGFORMAT"\t\t\t%x\n", (UCHAR *) free_blk,
|
||||
free_blk->free_length,
|
||||
(UCHAR *) (free_blk + free_blk->free_length));
|
||||
}
|
||||
ib_printf("Stats after %s\n", (cod) ? "Merging" : "Allocating");
|
||||
ib_printf("Free list count = %d\n", free_list_count);
|
||||
ib_printf("Total Free = %d\n", total_free);
|
||||
ib_printf("Free list count = %"ULONGFORMAT"\n", free_list_count);
|
||||
ib_printf("Total Free = %"ULONGFORMAT"\n", total_free);
|
||||
gds_print_delta_counters(ib_stdout);
|
||||
}
|
||||
|
||||
void gds_print_delta_counters(IB_FILE * fptr)
|
||||
{
|
||||
#ifdef DEV_BUILD
|
||||
ib_fprintf(fptr, "gds_delta_alloc = %d\n", gds_delta_alloc);
|
||||
ib_fprintf(fptr, "gds_max_alloc = %d\n", gds_max_alloc);
|
||||
ib_fprintf(fptr, "gds_delta_alloc = %"SLONGFORMAT"\n", gds_delta_alloc);
|
||||
ib_fprintf(fptr, "gds_max_alloc = %"SLONGFORMAT"\n", gds_max_alloc);
|
||||
#endif
|
||||
ib_fprintf(fptr, "allr_delta_alloc = %d\n", allr_delta_alloc);
|
||||
ib_fprintf(fptr, "alld_delta_alloc = %d\n", alld_delta_alloc);
|
||||
ib_fprintf(fptr, "all_delta_alloc = %d\n", all_delta_alloc);
|
||||
ib_fprintf(fptr, "allr_delta_alloc = %"SLONGFORMAT"\n", allr_delta_alloc);
|
||||
ib_fprintf(fptr, "alld_delta_alloc = %"SLONGFORMAT"\n", alld_delta_alloc);
|
||||
ib_fprintf(fptr, "all_delta_alloc = %"SLONGFORMAT"\n", all_delta_alloc);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -169,7 +169,7 @@ int API_ROUTINE perf_format(
|
||||
case 'b':
|
||||
case 'c':
|
||||
case 'x':
|
||||
sprintf(p, "%d", delta);
|
||||
sprintf(p, "%"SLONGFORMAT, delta);
|
||||
while (*p)
|
||||
p++;
|
||||
break;
|
||||
|
@ -45,7 +45,11 @@
|
||||
#ifdef _assert
|
||||
#undef _assert
|
||||
#endif
|
||||
#ifndef __LINE__IS_INT
|
||||
#define _assert(ex) {if (!(ex)){(void) ib_fprintf (ib_stderr, "assert failure: %s %ld\n", __FILE__, __LINE__);}}
|
||||
#else
|
||||
#define _assert(ex) {if (!(ex)){(void) ib_fprintf (ib_stderr, "assert failure: %s %d\n", __FILE__, __LINE__);}}
|
||||
#endif
|
||||
#ifdef assert
|
||||
#undef assert
|
||||
#endif
|
||||
|
143
src/jrd/vio.cpp
143
src/jrd/vio.cpp
@ -218,7 +218,8 @@ void VIO_backout(TDBB tdbb, RPB * rpb, JRD_TRA transaction)
|
||||
|
||||
#ifdef VIO_DEBUG
|
||||
if (debug_flag > DEBUG_WRITES)
|
||||
ib_printf("VIO_backout (rpb %"SLONGFORMAT", transaction %"SLONGFORMAT")\n", rpb->rpb_number,
|
||||
ib_printf("VIO_backout (rpb %"SLONGFORMAT", transaction %"SLONGFORMAT
|
||||
")\n", rpb->rpb_number,
|
||||
transaction ? transaction->tra_number : 0);
|
||||
#endif
|
||||
|
||||
@ -240,7 +241,8 @@ void VIO_backout(TDBB tdbb, RPB * rpb, JRD_TRA transaction)
|
||||
#ifdef VIO_DEBUG
|
||||
if (debug_flag > DEBUG_WRITES_INFO)
|
||||
ib_printf
|
||||
(" record %"SLONGFORMAT":%d, rpb_trans %"SLONGFORMAT", flags %d, back %"SLONGFORMAT":%d, fragment %"SLONGFORMAT":%d\n",
|
||||
(" record %"SLONGFORMAT":%d, rpb_trans %"SLONGFORMAT
|
||||
", flags %d, back %"SLONGFORMAT":%d, fragment %"SLONGFORMAT":%d\n",
|
||||
temp.rpb_page, temp.rpb_line, temp.rpb_transaction,
|
||||
temp.rpb_flags, temp.rpb_b_page, temp.rpb_b_line,
|
||||
temp.rpb_f_page, temp.rpb_f_line);
|
||||
@ -438,12 +440,14 @@ int VIO_chase_record_version(TDBB tdbb, RPB * rpb, RSB rsb, JRD_TRA transaction,
|
||||
#ifdef VIO_DEBUG
|
||||
if (debug_flag > DEBUG_TRACE_ALL)
|
||||
ib_printf
|
||||
("VIO_chase_record_version (rpb %"SLONGFORMAT", transaction %"SLONGFORMAT", pool %p)\n",
|
||||
("VIO_chase_record_version (rpb %"SLONGFORMAT", transaction %"
|
||||
SLONGFORMAT", pool %p)\n",
|
||||
rpb->rpb_number, transaction ? transaction->tra_number : 0,
|
||||
pool );
|
||||
if (debug_flag > DEBUG_TRACE_ALL_INFO)
|
||||
ib_printf
|
||||
(" record %"SLONGFORMAT":%d, rpb_trans %"SLONGFORMAT", flags %d, back %"SLONGFORMAT":%d, fragment %"SLONGFORMAT":%d\n",
|
||||
(" record %"SLONGFORMAT":%d, rpb_trans %"SLONGFORMAT
|
||||
", flags %d, back %"SLONGFORMAT":%d, fragment %"SLONGFORMAT":%d\n",
|
||||
rpb->rpb_page, rpb->rpb_line, rpb->rpb_transaction,
|
||||
rpb->rpb_flags, rpb->rpb_b_page, rpb->rpb_b_line,
|
||||
rpb->rpb_f_page, rpb->rpb_f_line);
|
||||
@ -493,7 +497,8 @@ int VIO_chase_record_version(TDBB tdbb, RPB * rpb, RSB rsb, JRD_TRA transaction,
|
||||
#ifdef VIO_DEBUG
|
||||
if (debug_flag > DEBUG_READS_INFO)
|
||||
ib_printf
|
||||
(" chase record %"SLONGFORMAT":%d, rpb_trans %"SLONGFORMAT", flags %d, back %"SLONGFORMAT":%d, fragment %"SLONGFORMAT":%d\n",
|
||||
(" chase record %"SLONGFORMAT":%d, rpb_trans %"SLONGFORMAT
|
||||
", flags %d, back %"SLONGFORMAT":%d, fragment %"SLONGFORMAT":%d\n",
|
||||
rpb->rpb_page, rpb->rpb_line, rpb->rpb_transaction,
|
||||
rpb->rpb_flags, rpb->rpb_b_page, rpb->rpb_b_line,
|
||||
rpb->rpb_f_page, rpb->rpb_f_line);
|
||||
@ -574,7 +579,8 @@ int VIO_chase_record_version(TDBB tdbb, RPB * rpb, RSB rsb, JRD_TRA transaction,
|
||||
#ifdef VIO_DEBUG
|
||||
if (debug_flag > DEBUG_READS_INFO)
|
||||
ib_printf
|
||||
(" record's transaction (%"SLONGFORMAT") is dead (my TID - %"SLONGFORMAT")\n",
|
||||
(" record's transaction (%"SLONGFORMAT
|
||||
") is dead (my TID - %"SLONGFORMAT")\n",
|
||||
rpb->rpb_transaction, transaction->tra_number);
|
||||
#endif
|
||||
#ifdef GARBAGE_THREAD
|
||||
@ -644,7 +650,8 @@ int VIO_chase_record_version(TDBB tdbb, RPB * rpb, RSB rsb, JRD_TRA transaction,
|
||||
#ifdef VIO_DEBUG
|
||||
if (debug_flag > DEBUG_READS_INFO)
|
||||
ib_printf
|
||||
(" record's transaction (%"SLONGFORMAT") is in limbo (my TID - %"SLONGFORMAT")\n",
|
||||
(" record's transaction (%"SLONGFORMAT
|
||||
") is in limbo (my TID - %"SLONGFORMAT")\n",
|
||||
rpb->rpb_transaction, transaction->tra_number);
|
||||
#endif
|
||||
|
||||
@ -658,7 +665,8 @@ int VIO_chase_record_version(TDBB tdbb, RPB * rpb, RSB rsb, JRD_TRA transaction,
|
||||
#ifdef VIO_DEBUG
|
||||
if ((debug_flag > DEBUG_READS_INFO) && (state == tra_active))
|
||||
ib_printf
|
||||
(" record's transaction (%"SLONGFORMAT") is active (my TID - %"SLONGFORMAT")\n",
|
||||
(" record's transaction (%"SLONGFORMAT
|
||||
") is active (my TID - %"SLONGFORMAT")\n",
|
||||
rpb->rpb_transaction, transaction->tra_number);
|
||||
#endif
|
||||
|
||||
@ -744,7 +752,8 @@ int VIO_chase_record_version(TDBB tdbb, RPB * rpb, RSB rsb, JRD_TRA transaction,
|
||||
#ifdef VIO_DEBUG
|
||||
if (debug_flag > DEBUG_READS_INFO)
|
||||
ib_printf
|
||||
(" record's transaction (%"SLONGFORMAT") is us (my TID - %"SLONGFORMAT")\n",
|
||||
(" record's transaction (%"SLONGFORMAT
|
||||
") is us (my TID - %"SLONGFORMAT")\n",
|
||||
rpb->rpb_transaction, transaction->tra_number);
|
||||
|
||||
#endif
|
||||
@ -761,7 +770,8 @@ int VIO_chase_record_version(TDBB tdbb, RPB * rpb, RSB rsb, JRD_TRA transaction,
|
||||
#ifdef VIO_DEBUG
|
||||
if (debug_flag > DEBUG_READS_INFO)
|
||||
ib_printf
|
||||
(" record's transaction (%"SLONGFORMAT") is committed (my TID - %"SLONGFORMAT")\n",
|
||||
(" record's transaction (%"SLONGFORMAT
|
||||
") is committed (my TID - %"SLONGFORMAT")\n",
|
||||
rpb->rpb_transaction, transaction->tra_number);
|
||||
|
||||
#endif
|
||||
@ -961,7 +971,8 @@ void VIO_data(TDBB tdbb, RPB * rpb, BLK pool)
|
||||
}
|
||||
if (debug_flag > DEBUG_READS_INFO)
|
||||
{
|
||||
ib_printf(" record %"SLONGFORMAT":%d, rpb_trans %"SLONGFORMAT", flags %d, back %"SLONGFORMAT":%d, fragment %"SLONGFORMAT":%d\n",
|
||||
ib_printf(" record %"SLONGFORMAT":%d, rpb_trans %"SLONGFORMAT
|
||||
", flags %d, back %"SLONGFORMAT":%d, fragment %"SLONGFORMAT":%d\n",
|
||||
rpb->rpb_page, rpb->rpb_line,
|
||||
rpb->rpb_transaction,
|
||||
rpb->rpb_flags,
|
||||
@ -1087,12 +1098,13 @@ void VIO_erase(TDBB tdbb, RPB * rpb, JRD_TRA transaction)
|
||||
#ifdef VIO_DEBUG
|
||||
if (debug_flag > DEBUG_WRITES)
|
||||
{
|
||||
ib_printf("VIO_erase (rpb %"SLONGFORMAT", transaction %"SLONGFORMAT")\n", rpb->rpb_number,
|
||||
transaction->tra_number);
|
||||
ib_printf("VIO_erase (rpb %"SLONGFORMAT", transaction %"SLONGFORMAT")\n",
|
||||
rpb->rpb_number, transaction->tra_number);
|
||||
}
|
||||
if (debug_flag > DEBUG_WRITES_INFO)
|
||||
{
|
||||
ib_printf(" record %"SLONGFORMAT":%d, rpb_trans %"SLONGFORMAT", flags %d, back %"SLONGFORMAT":%d, fragment %"SLONGFORMAT":%d\n",
|
||||
ib_printf(" record %"SLONGFORMAT":%d, rpb_trans %"SLONGFORMAT
|
||||
", flags %d, back %"SLONGFORMAT":%d, fragment %"SLONGFORMAT":%d\n",
|
||||
rpb->rpb_page, rpb->rpb_line, rpb->rpb_transaction,
|
||||
rpb->rpb_flags, rpb->rpb_b_page, rpb->rpb_b_line,
|
||||
rpb->rpb_f_page, rpb->rpb_f_line);
|
||||
@ -1441,12 +1453,14 @@ int VIO_garbage_collect(TDBB tdbb, RPB * rpb, JRD_TRA transaction)
|
||||
#ifdef VIO_DEBUG
|
||||
if (debug_flag > DEBUG_TRACE)
|
||||
{
|
||||
ib_printf("VIO_garbage_collect (rpb %"SLONGFORMAT", transaction %"SLONGFORMAT")\n",
|
||||
ib_printf("VIO_garbage_collect (rpb %"SLONGFORMAT", transaction %"
|
||||
SLONGFORMAT")\n",
|
||||
rpb->rpb_number, transaction ? transaction->tra_number : 0);
|
||||
}
|
||||
if (debug_flag > DEBUG_TRACE_INFO)
|
||||
{
|
||||
ib_printf(" record %"SLONGFORMAT":%d, rpb_trans %"SLONGFORMAT", flags %d, back %"SLONGFORMAT":%d, fragment %"SLONGFORMAT":%d\n",
|
||||
ib_printf(" record %"SLONGFORMAT":%d, rpb_trans %"SLONGFORMAT
|
||||
", flags %d, back %"SLONGFORMAT":%d, fragment %"SLONGFORMAT":%d\n",
|
||||
rpb->rpb_page, rpb->rpb_line, rpb->rpb_transaction,
|
||||
rpb->rpb_flags, rpb->rpb_b_page, rpb->rpb_b_line,
|
||||
rpb->rpb_f_page, rpb->rpb_f_line);
|
||||
@ -1613,7 +1627,8 @@ int VIO_get(TDBB tdbb, RPB * rpb, RSB rsb, JRD_TRA transaction, BLK pool)
|
||||
|
||||
#ifdef VIO_DEBUG
|
||||
if (debug_flag > DEBUG_READS)
|
||||
ib_printf("VIO_get (rpb %"SLONGFORMAT", transaction %d, pool %p)\n",
|
||||
ib_printf("VIO_get (rpb %"SLONGFORMAT", transaction %"SLONGFORMAT
|
||||
", pool %p)\n",
|
||||
rpb->rpb_number, transaction ? transaction->tra_number : 0,
|
||||
pool);
|
||||
#endif
|
||||
@ -1636,7 +1651,8 @@ int VIO_get(TDBB tdbb, RPB * rpb, RSB rsb, JRD_TRA transaction, BLK pool)
|
||||
#ifdef VIO_DEBUG
|
||||
if (debug_flag > DEBUG_READS_INFO)
|
||||
ib_printf
|
||||
(" record %"SLONGFORMAT":%d, rpb_trans %"SLONGFORMAT", flags %d, back %"SLONGFORMAT":%d, fragment %"SLONGFORMAT":%d\n",
|
||||
(" record %"SLONGFORMAT":%d, rpb_trans %"SLONGFORMAT
|
||||
", flags %d, back %"SLONGFORMAT":%d, fragment %"SLONGFORMAT":%d\n",
|
||||
rpb->rpb_page, rpb->rpb_line, rpb->rpb_transaction,
|
||||
rpb->rpb_flags, rpb->rpb_b_page, rpb->rpb_b_line,
|
||||
rpb->rpb_f_page, rpb->rpb_f_line);
|
||||
@ -1679,7 +1695,8 @@ int VIO_get_current(
|
||||
|
||||
#ifdef VIO_DEBUG
|
||||
if (debug_flag > DEBUG_TRACE)
|
||||
ib_printf("VIO_get_current (rpb %"SLONGFORMAT", transaction %d, pool %p)\n",
|
||||
ib_printf("VIO_get_current (rpb %"SLONGFORMAT", transaction %"
|
||||
SLONGFORMAT", pool %p)\n",
|
||||
rpb->rpb_number, transaction ? transaction->tra_number : 0,
|
||||
pool );
|
||||
#endif
|
||||
@ -1693,7 +1710,8 @@ int VIO_get_current(
|
||||
#ifdef VIO_DEBUG
|
||||
if (debug_flag > DEBUG_TRACE_INFO)
|
||||
ib_printf
|
||||
(" record %"SLONGFORMAT":%d, rpb_trans %"SLONGFORMAT", flags %d, back %"SLONGFORMAT":%d, fragment %"SLONGFORMAT":%d\n",
|
||||
(" record %"SLONGFORMAT":%d, rpb_trans %"SLONGFORMAT
|
||||
", flags %d, back %"SLONGFORMAT":%d, fragment %"SLONGFORMAT":%d\n",
|
||||
rpb->rpb_page, rpb->rpb_line, rpb->rpb_transaction,
|
||||
rpb->rpb_flags, rpb->rpb_b_page, rpb->rpb_b_line,
|
||||
rpb->rpb_f_page, rpb->rpb_f_line);
|
||||
@ -1956,12 +1974,14 @@ void VIO_modify(TDBB tdbb, RPB * org_rpb, RPB * new_rpb, JRD_TRA transaction)
|
||||
|
||||
#ifdef VIO_DEBUG
|
||||
if (debug_flag > DEBUG_WRITES)
|
||||
ib_printf("VIO_modify (org_rpb %"SLONGFORMAT", new_rpb %"SLONGFORMAT", transaction %d)\n",
|
||||
ib_printf("VIO_modify (org_rpb %"SLONGFORMAT", new_rpb %"SLONGFORMAT
|
||||
", transaction %"SLONGFORMAT")\n",
|
||||
org_rpb->rpb_number, new_rpb->rpb_number,
|
||||
transaction ? transaction->tra_number : 0);
|
||||
if (debug_flag > DEBUG_WRITES_INFO)
|
||||
ib_printf
|
||||
(" old record %"SLONGFORMAT":%d, rpb_trans %"SLONGFORMAT", flags %d, back %"SLONGFORMAT":%d, fragment %"SLONGFORMAT":%d\n",
|
||||
(" old record %"SLONGFORMAT":%d, rpb_trans %"SLONGFORMAT
|
||||
", flags %d, back %"SLONGFORMAT":%d, fragment %"SLONGFORMAT":%d\n",
|
||||
org_rpb->rpb_page, org_rpb->rpb_line, org_rpb->rpb_transaction,
|
||||
org_rpb->rpb_flags, org_rpb->rpb_b_page, org_rpb->rpb_b_line,
|
||||
org_rpb->rpb_f_page, org_rpb->rpb_f_line);
|
||||
@ -2140,11 +2160,13 @@ BOOLEAN VIO_writelock(TDBB tdbb, RPB * org_rpb, JRD_TRA transaction)
|
||||
|
||||
#ifdef VIO_DEBUG
|
||||
if (debug_flag > DEBUG_WRITES)
|
||||
ib_printf("VIO_writelock (org_rpb %"SLONGFORMAT", transaction %d)\n",
|
||||
ib_printf("VIO_writelock (org_rpb %"SLONGFORMAT", transaction %"
|
||||
SLONGFORMAT")\n",
|
||||
org_rpb->rpb_number, transaction ? transaction->tra_number : 0);
|
||||
if (debug_flag > DEBUG_WRITES_INFO)
|
||||
ib_printf
|
||||
(" old record %"SLONGFORMAT":%d, rpb_trans %"SLONGFORMAT", flags %d, back %"SLONGFORMAT":%d, fragment %"SLONGFORMAT":%d\n",
|
||||
(" old record %"SLONGFORMAT":%d, rpb_trans %"SLONGFORMAT
|
||||
", flags %d, back %"SLONGFORMAT":%d, fragment %"SLONGFORMAT":%d\n",
|
||||
org_rpb->rpb_page, org_rpb->rpb_line, org_rpb->rpb_transaction,
|
||||
org_rpb->rpb_flags, org_rpb->rpb_b_page, org_rpb->rpb_b_line,
|
||||
org_rpb->rpb_f_page, org_rpb->rpb_f_line);
|
||||
@ -2264,12 +2286,14 @@ BOOLEAN VIO_next_record(TDBB tdbb,
|
||||
|
||||
#ifdef VIO_DEBUG
|
||||
if (debug_flag > DEBUG_TRACE)
|
||||
ib_printf("VIO_next_record (rpb %"SLONGFORMAT", transaction %d, pool %p)\n",
|
||||
ib_printf("VIO_next_record (rpb %"SLONGFORMAT", transaction %"
|
||||
SLONGFORMAT", pool %p)\n",
|
||||
rpb->rpb_number, transaction ? transaction->tra_number : 0,
|
||||
pool);
|
||||
if (debug_flag > DEBUG_TRACE_INFO)
|
||||
ib_printf
|
||||
(" record %"SLONGFORMAT":%d, rpb_trans %"SLONGFORMAT", flags %d, back %"SLONGFORMAT":%d, fragment %"SLONGFORMAT":%d\n",
|
||||
(" record %"SLONGFORMAT":%d, rpb_trans %"SLONGFORMAT
|
||||
", flags %d, back %"SLONGFORMAT":%d, fragment %"SLONGFORMAT":%d\n",
|
||||
rpb->rpb_page, rpb->rpb_line, rpb->rpb_transaction,
|
||||
rpb->rpb_flags, rpb->rpb_b_page, rpb->rpb_b_line,
|
||||
rpb->rpb_f_page, rpb->rpb_f_line);
|
||||
@ -2291,7 +2315,9 @@ BOOLEAN VIO_next_record(TDBB tdbb,
|
||||
#ifdef VIO_DEBUG
|
||||
if (debug_flag > DEBUG_READS_INFO)
|
||||
ib_printf
|
||||
("VIO_next_record got record %"SLONGFORMAT":%d, rpb_trans %"SLONGFORMAT", flags %d, back %"SLONGFORMAT":%d, fragment %"SLONGFORMAT":%d\n",
|
||||
("VIO_next_record got record %"SLONGFORMAT":%d, rpb_trans %"
|
||||
SLONGFORMAT", flags %d, back %"SLONGFORMAT":%d, fragment %"
|
||||
SLONGFORMAT":%d\n",
|
||||
rpb->rpb_page, rpb->rpb_line, rpb->rpb_transaction,
|
||||
rpb->rpb_flags, rpb->rpb_b_page, rpb->rpb_b_line,
|
||||
rpb->rpb_f_page, rpb->rpb_f_line);
|
||||
@ -2415,7 +2441,8 @@ void VIO_store(TDBB tdbb, RPB * rpb, JRD_TRA transaction)
|
||||
|
||||
#ifdef VIO_DEBUG
|
||||
if (debug_flag > DEBUG_WRITES)
|
||||
ib_printf("VIO_store (rpb %"SLONGFORMAT", transaction %d)\n", rpb->rpb_number,
|
||||
ib_printf("VIO_store (rpb %"SLONGFORMAT", transaction %"SLONGFORMAT
|
||||
")\n", rpb->rpb_number,
|
||||
transaction ? transaction->tra_number : 0);
|
||||
#endif
|
||||
|
||||
@ -2517,7 +2544,8 @@ void VIO_store(TDBB tdbb, RPB * rpb, JRD_TRA transaction)
|
||||
#ifdef VIO_DEBUG
|
||||
if (debug_flag > DEBUG_WRITES_INFO)
|
||||
ib_printf
|
||||
(" record %"SLONGFORMAT":%d, rpb_trans %"SLONGFORMAT", flags %d, back %"SLONGFORMAT":%d, fragment %"SLONGFORMAT":%d\n",
|
||||
(" record %"SLONGFORMAT":%d, rpb_trans %"SLONGFORMAT
|
||||
", flags %d, back %"SLONGFORMAT":%d, fragment %"SLONGFORMAT":%d\n",
|
||||
rpb->rpb_page, rpb->rpb_line, rpb->rpb_transaction,
|
||||
rpb->rpb_flags, rpb->rpb_b_page, rpb->rpb_b_line,
|
||||
rpb->rpb_f_page, rpb->rpb_f_line);
|
||||
@ -2560,7 +2588,7 @@ BOOLEAN VIO_sweep(TDBB tdbb, JRD_TRA transaction)
|
||||
|
||||
#ifdef VIO_DEBUG
|
||||
if (debug_flag > DEBUG_TRACE)
|
||||
ib_printf("VIO_sweep (transaction %d)\n",
|
||||
ib_printf("VIO_sweep (transaction %"SLONGFORMAT")\n",
|
||||
transaction ? transaction->tra_number : 0);
|
||||
#endif
|
||||
|
||||
@ -2662,7 +2690,7 @@ void VIO_verb_cleanup(TDBB tdbb, JRD_TRA transaction)
|
||||
|
||||
#ifdef VIO_DEBUG
|
||||
if (debug_flag > DEBUG_TRACE)
|
||||
ib_printf("VIO_verb_cleanup (transaction %d)\n",
|
||||
ib_printf("VIO_verb_cleanup (transaction %"SLONGFORMAT")\n",
|
||||
transaction ? transaction->tra_number : 0);
|
||||
#endif
|
||||
if (transaction->tra_flags & TRA_system)
|
||||
@ -3079,7 +3107,8 @@ static void delete_(TDBB tdbb, RPB * rpb, SLONG prior_page, JrdMemoryPool *pool)
|
||||
pool);
|
||||
if (debug_flag > DEBUG_WRITES_INFO)
|
||||
ib_printf
|
||||
(" delete_ record %"SLONGFORMAT":%d, rpb_trans %"SLONGFORMAT", flags %d, back %"SLONGFORMAT":%d, fragment %"SLONGFORMAT":%d\n",
|
||||
(" delete_ record %"SLONGFORMAT":%d, rpb_trans %"SLONGFORMAT
|
||||
", flags %d, back %"SLONGFORMAT":%d, fragment %"SLONGFORMAT":%d\n",
|
||||
rpb->rpb_page, rpb->rpb_line, rpb->rpb_transaction,
|
||||
rpb->rpb_flags, rpb->rpb_b_page, rpb->rpb_b_line,
|
||||
rpb->rpb_f_page, rpb->rpb_f_line);
|
||||
@ -3147,7 +3176,8 @@ static UCHAR *delete_tail(
|
||||
rpb->rpb_number, prior_page, tail, tail_end);
|
||||
if (debug_flag > DEBUG_WRITES_INFO)
|
||||
ib_printf
|
||||
(" tail of record %"SLONGFORMAT":%d, rpb_trans %"SLONGFORMAT", flags %d, back %"SLONGFORMAT":%d, fragment %"SLONGFORMAT":%d\n",
|
||||
(" tail of record %"SLONGFORMAT":%d, rpb_trans %"SLONGFORMAT
|
||||
", flags %d, back %"SLONGFORMAT":%d, fragment %"SLONGFORMAT":%d\n",
|
||||
rpb->rpb_page, rpb->rpb_line, rpb->rpb_transaction,
|
||||
rpb->rpb_flags, rpb->rpb_b_page, rpb->rpb_b_line,
|
||||
rpb->rpb_f_page, rpb->rpb_f_line);
|
||||
@ -3199,7 +3229,8 @@ static void expunge(TDBB tdbb, RPB * rpb, JRD_TRA transaction, SLONG prior_page)
|
||||
|
||||
#ifdef VIO_DEBUG
|
||||
if (debug_flag > DEBUG_WRITES)
|
||||
ib_printf("expunge (rpb %"SLONGFORMAT", transaction %d, prior_page %"SLONGFORMAT")\n",
|
||||
ib_printf("expunge (rpb %"SLONGFORMAT", transaction %"SLONGFORMAT
|
||||
", prior_page %"SLONGFORMAT")\n",
|
||||
rpb->rpb_number, transaction ? transaction->tra_number : 0,
|
||||
prior_page);
|
||||
#endif
|
||||
@ -3214,7 +3245,8 @@ static void expunge(TDBB tdbb, RPB * rpb, JRD_TRA transaction, SLONG prior_page)
|
||||
#ifdef VIO_DEBUG
|
||||
if (debug_flag > DEBUG_WRITES_INFO)
|
||||
ib_printf
|
||||
(" expunge record %"SLONGFORMAT":%d, rpb_trans %"SLONGFORMAT", flags %d, back %"SLONGFORMAT":%d, fragment %"SLONGFORMAT":%d\n",
|
||||
(" expunge record %"SLONGFORMAT":%d, rpb_trans %"SLONGFORMAT
|
||||
", flags %d, back %"SLONGFORMAT":%d, fragment %"SLONGFORMAT":%d\n",
|
||||
rpb->rpb_page, rpb->rpb_line, rpb->rpb_transaction,
|
||||
rpb->rpb_flags, rpb->rpb_b_page, rpb->rpb_b_line,
|
||||
rpb->rpb_f_page, rpb->rpb_f_line);
|
||||
@ -3269,11 +3301,13 @@ static void garbage_collect(
|
||||
|
||||
#ifdef VIO_DEBUG
|
||||
if (debug_flag > DEBUG_WRITES)
|
||||
ib_printf("garbage_collect (rpb %"SLONGFORMAT", prior_page %"SLONGFORMAT", staying)\n",
|
||||
ib_printf("garbage_collect (rpb %"SLONGFORMAT", prior_page %"SLONGFORMAT
|
||||
", staying)\n",
|
||||
rpb->rpb_number, prior_page);
|
||||
if (debug_flag > DEBUG_WRITES_INFO)
|
||||
ib_printf
|
||||
(" record %"SLONGFORMAT":%d, rpb_trans %"SLONGFORMAT", flags %d, back %"SLONGFORMAT":%d, fragment %"SLONGFORMAT":%d\n",
|
||||
(" record %"SLONGFORMAT":%d, rpb_trans %"SLONGFORMAT
|
||||
", flags %d, back %"SLONGFORMAT":%d, fragment %"SLONGFORMAT":%d\n",
|
||||
rpb->rpb_page, rpb->rpb_line, rpb->rpb_transaction,
|
||||
rpb->rpb_flags, rpb->rpb_b_page, rpb->rpb_b_line,
|
||||
rpb->rpb_f_page, rpb->rpb_f_line);
|
||||
@ -3878,7 +3912,8 @@ static int prepare_update( TDBB tdbb,
|
||||
#ifdef VIO_DEBUG
|
||||
if (debug_flag > DEBUG_TRACE_ALL) {
|
||||
ib_printf
|
||||
("prepare_update (transaction %"SLONGFORMAT", commit_tid read %ld, rpb %"SLONGFORMAT", ",
|
||||
("prepare_update (transaction %"SLONGFORMAT
|
||||
", commit_tid read %ld, rpb %"SLONGFORMAT", ",
|
||||
transaction ? transaction->tra_number : 0, commit_tid_read,
|
||||
rpb ? rpb->rpb_number : 0);
|
||||
ib_printf(" temp_rpb %"SLONGFORMAT", new_rpb %"SLONGFORMAT", stack)\n",
|
||||
@ -3887,7 +3922,9 @@ static int prepare_update( TDBB tdbb,
|
||||
}
|
||||
if (debug_flag > DEBUG_TRACE_ALL_INFO)
|
||||
ib_printf
|
||||
(" old record %"SLONGFORMAT":%d, rpb_trans %"SLONGFORMAT", flags %d, back %"SLONGFORMAT":%d, fragment %"SLONGFORMAT":%d, prior %d\n",
|
||||
(" old record %"SLONGFORMAT":%d, rpb_trans %"SLONGFORMAT
|
||||
", flags %d, back %"SLONGFORMAT":%d, fragment %"SLONGFORMAT
|
||||
":%d, prior %d\n",
|
||||
rpb->rpb_page, rpb->rpb_line, rpb->rpb_transaction,
|
||||
rpb->rpb_flags, rpb->rpb_b_page, rpb->rpb_b_line,
|
||||
rpb->rpb_f_page, rpb->rpb_f_line, rpb->rpb_prior);
|
||||
@ -4021,7 +4058,8 @@ static int prepare_update( TDBB tdbb,
|
||||
#ifdef VIO_DEBUG
|
||||
if (debug_flag > DEBUG_READS_INFO)
|
||||
ib_printf
|
||||
(" record's transaction (%"SLONGFORMAT") is committed (my TID - %"SLONGFORMAT")\n",
|
||||
(" record's transaction (%"SLONGFORMAT
|
||||
") is committed (my TID - %"SLONGFORMAT")\n",
|
||||
rpb->rpb_transaction, transaction->tra_number);
|
||||
#endif
|
||||
if (rpb->rpb_flags & rpb_deleted) {
|
||||
@ -4068,7 +4106,8 @@ static int prepare_update( TDBB tdbb,
|
||||
#ifdef VIO_DEBUG
|
||||
if (debug_flag > DEBUG_READS_INFO && state == tra_us)
|
||||
ib_printf
|
||||
(" record's transaction (%"SLONGFORMAT") is us (my TID - %"SLONGFORMAT")\n",
|
||||
(" record's transaction (%"SLONGFORMAT
|
||||
") is us (my TID - %"SLONGFORMAT")\n",
|
||||
rpb->rpb_transaction, transaction->tra_number);
|
||||
|
||||
#endif
|
||||
@ -4111,7 +4150,8 @@ static int prepare_update( TDBB tdbb,
|
||||
#ifdef VIO_DEBUG
|
||||
if (debug_flag > DEBUG_READS_INFO) {
|
||||
ib_printf
|
||||
(" record's transaction (%"SLONGFORMAT") is %s (my TID - %"SLONGFORMAT")\n",
|
||||
(" record's transaction (%"SLONGFORMAT
|
||||
") is %s (my TID - %"SLONGFORMAT")\n",
|
||||
rpb->rpb_transaction,
|
||||
(state == tra_active) ? "active" : "limbo",
|
||||
transaction->tra_number);
|
||||
@ -4183,7 +4223,8 @@ static int prepare_update( TDBB tdbb,
|
||||
#ifdef VIO_DEBUG
|
||||
if (debug_flag > DEBUG_READS_INFO)
|
||||
ib_printf
|
||||
(" record's transaction (%"SLONGFORMAT") is dead (my TID - %"SLONGFORMAT")\n",
|
||||
(" record's transaction (%"SLONGFORMAT
|
||||
") is dead (my TID - %"SLONGFORMAT")\n",
|
||||
rpb->rpb_transaction, transaction->tra_number);
|
||||
#endif
|
||||
CCH_RELEASE(tdbb, &rpb->rpb_window);
|
||||
@ -4234,7 +4275,8 @@ static BOOLEAN purge(TDBB tdbb, RPB* rpb)
|
||||
ib_printf("purge (rpb %"SLONGFORMAT")\n", rpb->rpb_number);
|
||||
if (debug_flag > DEBUG_TRACE_ALL_INFO)
|
||||
ib_printf
|
||||
(" record %"SLONGFORMAT":%d, rpb_trans %"SLONGFORMAT", flags %d, back %"SLONGFORMAT":%d, fragment %"SLONGFORMAT":%d\n",
|
||||
(" record %"SLONGFORMAT":%d, rpb_trans %"SLONGFORMAT
|
||||
", flags %d, back %"SLONGFORMAT":%d, fragment %"SLONGFORMAT":%d\n",
|
||||
rpb->rpb_page, rpb->rpb_line, rpb->rpb_transaction,
|
||||
rpb->rpb_flags, rpb->rpb_b_page, rpb->rpb_b_line,
|
||||
rpb->rpb_f_page, rpb->rpb_f_line);
|
||||
@ -4348,11 +4390,14 @@ static void replace_record(
|
||||
|
||||
#ifdef VIO_DEBUG
|
||||
if (debug_flag > DEBUG_TRACE_ALL)
|
||||
ib_printf("replace_record (rpb %"SLONGFORMAT", stack, transaction %"SLONGFORMAT")\n",
|
||||
ib_printf("replace_record (rpb %"SLONGFORMAT", stack, transaction %"
|
||||
SLONGFORMAT")\n",
|
||||
rpb->rpb_number, transaction ? transaction->tra_number : 0);
|
||||
if (debug_flag > DEBUG_TRACE_ALL_INFO)
|
||||
ib_printf
|
||||
(" record %"SLONGFORMAT":%d, rpb_trans %"SLONGFORMAT", flags %d, back %"SLONGFORMAT":%d, fragment %"SLONGFORMAT":%d, prior %d\n",
|
||||
(" record %"SLONGFORMAT":%d, rpb_trans %"SLONGFORMAT
|
||||
", flags %d, back %"SLONGFORMAT":%d, fragment %"SLONGFORMAT
|
||||
":%d, prior %d\n",
|
||||
rpb->rpb_page, rpb->rpb_line, rpb->rpb_transaction,
|
||||
rpb->rpb_flags, rpb->rpb_b_page, rpb->rpb_b_line,
|
||||
rpb->rpb_f_page, rpb->rpb_f_line, rpb->rpb_prior);
|
||||
@ -4431,12 +4476,14 @@ static void update_in_place(
|
||||
#ifdef VIO_DEBUG
|
||||
if (debug_flag > DEBUG_TRACE_ALL)
|
||||
ib_printf
|
||||
("update_in_place (transaction %d, org_rpb %"SLONGFORMAT", new_rpb %d)\n",
|
||||
("update_in_place (transaction %"SLONGFORMAT", org_rpb %"SLONGFORMAT
|
||||
", new_rpb %"SLONGFORMAT")\n",
|
||||
transaction ? transaction->tra_number : 0, org_rpb->rpb_number,
|
||||
new_rpb ? new_rpb->rpb_number : 0);
|
||||
if (debug_flag > DEBUG_TRACE_ALL_INFO)
|
||||
ib_printf
|
||||
(" old record %"SLONGFORMAT":%d, rpb_trans %"SLONGFORMAT", flags %d, back %"SLONGFORMAT":%d, fragment %"SLONGFORMAT":%d\n",
|
||||
(" old record %"SLONGFORMAT":%d, rpb_trans %"SLONGFORMAT
|
||||
", flags %d, back %"SLONGFORMAT":%d, fragment %"SLONGFORMAT":%d\n",
|
||||
org_rpb->rpb_page, org_rpb->rpb_line, org_rpb->rpb_transaction,
|
||||
org_rpb->rpb_flags, org_rpb->rpb_b_page, org_rpb->rpb_b_line,
|
||||
org_rpb->rpb_f_page, org_rpb->rpb_f_line);
|
||||
|
Loading…
Reference in New Issue
Block a user