1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-11-06 08:49:29 +02:00

Fix overflow suppressing backup status in info output.

Writing the sz and szCplt parameters in the lock file used jsonWriteUInt64() but reading these parameters used jsonReadUInt(). This caused a silent exception for any backups larger than MAX_UINT and prevented the info command from reporting progress.

Correct this so the reads are symmetric and verified before/after with a test.
This commit is contained in:
Robert Donovan
2023-12-21 13:16:13 +00:00
committed by GitHub
parent 8af3c1c9ac
commit 25f14898ba
4 changed files with 31 additions and 5 deletions

View File

@@ -1,5 +1,19 @@
<release date="XXXX-XX-XX" version="2.50dev" title="Under Development">
<release-core-list>
<release-bug-list>
<release-item>
<github-issue id="2251"/>
<github-pull-request id="2252"/>
<release-item-contributor-list>
<release-item-contributor id="robert.donovan"/>
<release-item-reviewer id="joe.wildish"/>
</release-item-contributor-list>
<p>Fix overflow suppressing backup progress in <cmd>info</cmd> output.</p>
</release-item>
</release-bug-list>
<release-improvement-list>
<release-item>
<github-pull-request id="2197"/>

View File

@@ -565,6 +565,11 @@
<contributor-id type="github">JBromage</contributor-id>
</contributor>
<contributor id="joe.wildish">
<contributor-name-display>Joe Wildish</contributor-name-display>
<contributor-id type="github">joewildish</contributor-id>
</contributor>
<contributor id="keith.fiske">
<contributor-name-display>Keith Fiske</contributor-name-display>
<contributor-id type="github">keithf4</contributor-id>
@@ -840,6 +845,11 @@
<contributor-id type="github">vidierr</contributor-id>
</contributor>
<contributor id="robert.donovan">
<contributor-name-display>Robert Donovan</contributor-name-display>
<contributor-id type="github">rob-donovan</contributor-id>
</contributor>
<contributor id="rohit.raveendran">
<contributor-name-display>Rohit Raveendran</contributor-name-display>
<contributor-id type="github">rohitrav33ndran</contributor-id>