v2.52.1: Bug Fix
commit : cc9035c2456e00eef463724dfc6900f68dd9c3fc
author : David Steele <[email protected]>
date : Tue, 25 Jun 2024 11:46:44 +0800
committer: David Steele <[email protected]>
date : Tue, 25 Jun 2024 11:46:44 +0800
Bug Fixes:
* Fix issue with files larger on the replica than on the primary. (Reviewed by Stefan Fercot. Reported by Nicolas Lassimonne.)
M CONTRIBUTING.md
M README.md
M doc/resource/exe.cache
M doc/resource/git-history.cache
M doc/xml/release/2024/2.52.1.xml
M meson.build
M src/build/configure.ac
M src/configure
M src/version.h
Fix issue with files larger on the replica than on the primary.
commit : aabc122021a582e9d0193f978cf710cff95c2bee
author : David Steele <[email protected]>
date : Tue, 25 Jun 2024 09:02:40 +0800
committer: David Steele <[email protected]>
date : Tue, 25 Jun 2024 09:02:40 +0800
If a file on the primary was larger than on the replica then the next diff/incr backup would store the primary size instead of the replica size when block incremental was enabled. On the next diff/incr backup this would lead to a repo size must be > 0 for file error when validating the manifest.
Fix this by limiting copy based on sizeOriginal rather than size so size can be set to the value expected to be stored in the manifest. As a bonus sizePrior is no longer needed since size can be used for the same purpose.
M doc/xml/release/2024/2.52.1.xml
M doc/xml/release/contributor.xml
M src/command/backup/backup.c
M src/command/backup/file.c
M src/command/backup/file.h
M src/command/backup/protocol.c
M src/info/manifest.c
M src/info/manifest.h
M test/src/module/command/backupTest.c
M test/src/module/info/manifestTest.c
Add unit tests for backup from standby with block incremental.
commit : 83aaa868ef396348bf96589457f13c1805b25cb6
author : David Steele <[email protected]>
date : Tue, 25 Jun 2024 08:55:22 +0800
committer: David Steele <[email protected]>
date : Tue, 25 Jun 2024 08:55:22 +0800
These tests are important for an upcoming bug fix related to differing sizes of a file on a primary vs standby.
The test that demonstrates the bug cannot be included here since it causes a test failure, but this commit introduces the infrastructure and one test to guard against a regression in the bug fix.
M test/src/module/command/backupTest.c
Begin v2.52.1 development.
commit : 0c6068b8df0318143f05509170e4837cf0fc60d0
author : David Steele <[email protected]>
date : Tue, 25 Jun 2024 08:54:39 +0800
committer: David Steele <[email protected]>
date : Tue, 25 Jun 2024 08:54:39 +0800
M doc/resource/git-history.cache
M doc/xml/release.xml
A doc/xml/release/2024/2.52.1.xml
M doc/xml/release/2024/2.52.xml
M meson.build
M src/build/configure.ac
M src/configure
M src/version.h
M test/code-count/file-type.yaml