mirror of
https://github.com/isc-projects/bind9.git
synced 2026-04-29 01:49:02 -04:00
Compute transaction size based on journal/transaction type
previously the code assumed that it was a new transaction.
This commit is contained in:
parent
5a6112ec8f
commit
520509ac7e
1 changed files with 2 additions and 1 deletions
|
|
@ -1318,7 +1318,8 @@ dns_journal_commit(dns_journal_t *j) {
|
|||
if (j->state == JOURNAL_STATE_TRANSACTION) {
|
||||
isc_offset_t offset;
|
||||
offset = (j->x.pos[1].offset - j->x.pos[0].offset) -
|
||||
sizeof(journal_rawxhdr_t);
|
||||
(j->header_ver1 ? sizeof(journal_rawxhdr_ver1_t)
|
||||
: sizeof(journal_rawxhdr_t));
|
||||
/*
|
||||
* Update the transaction header.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue