mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 08:03:04 +01:00
Misc.
This commit is contained in:
parent
f761965078
commit
769265ee1c
@ -868,7 +868,7 @@ AttNumber PAG_attachment_id(thread_db* tdbb)
|
||||
header_page* header = (header_page*) CCH_FETCH(tdbb, &window, LCK_write, pag_header);
|
||||
CCH_MARK(tdbb, &window);
|
||||
const AttNumber att_id =
|
||||
((SINT64) header->hdr_att_high << BITS_PER_LONG | header->hdr_attachment_id) + 1;
|
||||
((AttNumber) header->hdr_att_high << BITS_PER_LONG | header->hdr_attachment_id) + 1;
|
||||
attachment->att_attachment_id = att_id;
|
||||
header->hdr_att_high = att_id >> BITS_PER_LONG;
|
||||
header->hdr_attachment_id = (ULONG) (att_id & MAX_ULONG);
|
||||
|
@ -75,7 +75,7 @@ void PPG_print_header(const header_page* header, ULONG page,
|
||||
uSvc->printf(false, "\tSequence number\t\t%d\n", header->hdr_sequence);
|
||||
|
||||
const AttNumber att_id =
|
||||
(SINT64) header->hdr_att_high << BITS_PER_LONG | header->hdr_attachment_id;
|
||||
(AttNumber) header->hdr_att_high << BITS_PER_LONG | header->hdr_attachment_id;
|
||||
uSvc->printf(false, "\tNext attachment ID\t%"SQUADFORMAT"\n", att_id);
|
||||
|
||||
Firebird::DbImplementation imp(header);
|
||||
|
Loading…
Reference in New Issue
Block a user