Skip to content

Fix for #9291. Missing final record count in gbak backup logs - #9292

Merged
hvlad merged 2 commits into
FirebirdSQL:masterfrom
ChudaykinAlex:work/gbak_err_count_records_log
Nov 13, 2026
Merged

hvlad merged 2 commits into
FirebirdSQL:masterfrom
ChudaykinAlex:work/gbak_err_count_records_log

Conversation

@ChudaykinAlex

@ChudaykinAlex ChudaykinAlex commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Fix #9291

Change

When the final buffer of a table crossed a reporting threshold, gbak could omit the exact final record count. For example, backing up 101 rows with -verbint 100 ended with 100 records written in the log.

The final check now compares the actual total with the last reported value. It prints the exact total when needed and avoids a duplicate message when the values match. The backup format and data writing logic are unchanged.

Validation

The following cases were checked before and after the fix using -verbint 100 -parallel 1:

Rows in table Counts reported before the fix Counts reported after the fix
101 100 100, 101
100 100 100
99 99 99
0 0 0

The backup of the 101-row table was restored successfully: COUNT(*) = 101, MIN(ID) = 1, and MAX(ID) = 101.

Comment thread src/burp/BurpTasks.cpp Outdated
verbRecs = records;
BURP_verbose(108, SafeArg() << (verb * tdgbl->verboseInterval) /*records*/);
verbRecs = verb * tdgbl->verboseInterval;
BURP_verbose(108, SafeArg() << (verbRecs) /*records*/);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to keep that comment

@hvlad
hvlad merged commit 2006f08 into FirebirdSQL:master Nov 13, 2026
18 checks passed
hvlad added a commit that referenced this pull request Nov 13, 2026
…ds_log

Fix for #9291. Missing final record count in gbak backup logs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gbak omits the exact final record count from backup logs

2 participants