pgBackRest 2.43 (upcoming) commit log

Fix assert message and add a clarifying comment.

commit   : f0acc195c0527495857f1afa8b24bdf2a4f477b5    
  
author   : David Steele <david@pgmasters.net>    
date     : Mon, 3 Oct 2022 10:02:44 -1000    
  
committer: David Steele <david@pgmasters.net>    
date     : Mon, 3 Oct 2022 10:02:44 -1000    

Click here for diff

M src/common/io/filter/filter.c

Do not log bundle info when a file is delta matched from a prior backup.

commit   : 6e26860c2648f6e23ad99bb4d38ecb1bfc45dd0c    
  
author   : David Steele <david@pgmasters.net>    
date     : Sun, 2 Oct 2022 17:48:43 -1000    
  
committer: David Steele <david@pgmasters.net>    
date     : Sun, 2 Oct 2022 17:48:43 -1000    

Click here for diff

It is possible to log the bundle info correctly but the information is useless with the backup reference, which does not appear until later. For now just omit the bundle info so we are not logging something incorrect.  

M src/command/backup/backup.c
M test/src/module/command/backupTest.c

Add test for differential file bundles to the command/backup unit.

commit   : 4722ad87a78f1085ef8d823b7460d191477e768e    
  
author   : David Steele <david@pgmasters.net>    
date     : Sun, 2 Oct 2022 17:41:31 -1000    
  
committer: David Steele <david@pgmasters.net>    
date     : Sun, 2 Oct 2022 17:41:31 -1000    

Click here for diff

This test exposes a small logging issue. The bundle information for the matched delta on PG_VERSION is not correct. This issue will be fixed in the next commit.  
  
The information stored in the manifest *is* correct so this bug is essentially cosmetic.  

M test/src/module/command/backupTest.c

Add bufferSize to cvtUInt64FromVarInt128() to further limit reads.

commit   : ac99201c0ebde616279214e600e49fdf506f7469    
  
author   : David Steele <david@pgmasters.net>    
date     : Sun, 2 Oct 2022 17:32:48 -1000    
  
committer: David Steele <david@pgmasters.net>    
date     : Sun, 2 Oct 2022 17:32:48 -1000    

Click here for diff

The current call site, manifestFileUnpack(), does not know the total buffer size but the buffer has always been maintained in memory so there should be no corruption. However, there are upcoming use cases where the buffer will be read from IO, the buffer size will be known, and additional sanity checking on buffer overruns will be valuable.  
  
Also rename params to align better with cvtUInt64ToVarInt128().  

M src/common/type/convert.c
M src/common/type/convert.h
M src/info/manifest.c
M test/src/module/common/typeConvertTest.c

commit   : 01b81f9d374701eb489dd1888bcba25fb5d6df84    
  
author   : Reid Thompson <1116827+jreidthompson@users.noreply.github.com>    
date     : Sat, 1 Oct 2022 21:26:44 -0400    
  
committer: GitHub <noreply@github.com>    
date     : Sat, 1 Oct 2022 21:26:44 -0400    

Click here for diff

Direct link creation via Posix functions has been moved to the Posix driver.
  

  
This change allows adding SFTP softlink creation in the SFTP driver using the standard interface.

M doc/xml/release.xml
M src/command/backup/backup.c
M src/command/backup/common.c
M src/command/restore/restore.c
M src/storage/posix/storage.c
M src/storage/posix/storage.intern.h
M src/storage/remote/protocol.c
M src/storage/remote/protocol.h
M src/storage/remote/storage.c
M src/storage/storage.c
M src/storage/storage.h
M src/storage/storage.intern.h
M test/define.yaml
M test/src/module/storage/posixTest.c
M test/src/module/storage/remoteTest.c

Add zero-length chunked content test to common/ioHttp unit.

commit   : 2a4137ed2eeaa769508301056226d6f86a67fd06    
  
author   : David Steele <david@pgmasters.net>    
date     : Sun, 25 Sep 2022 16:15:23 -0800    
  
committer: David Steele <david@pgmasters.net>    
date     : Sun, 25 Sep 2022 16:15:23 -0800    

Click here for diff

It seems wasteful to chunk content when there is nothing to send but make sure we handle it gracefully just in case a server decides to do it.  

M test/src/module/common/ioHttpTest.c

Fix comment typo.

commit   : 64b64b614c8272d2a87ffcde2fa7f27cf7eee365    
  
author   : David Steele <david@pgmasters.net>    
date     : Sun, 25 Sep 2022 12:30:30 -0800    
  
committer: David Steele <david@pgmasters.net>    
date     : Sun, 25 Sep 2022 12:30:30 -0800    

Click here for diff

M test/src/module/command/backupTest.c

Use large error/log buffers in test harness.

commit   : f1e8e49fa933dd0f5dfab446f511ac010eb4d236    
  
author   : David Steele <david@pgmasters.net>    
date     : Fri, 23 Sep 2022 14:00:58 -0700    
  
committer: David Steele <david@pgmasters.net>    
date     : Fri, 23 Sep 2022 14:00:58 -0700    

Click here for diff

Ninja produces quite a bit of output so error messages are often truncated by the default error/log buffers. Use large buffers in the test harness to capture the error even when there is a lot of output.  
  
Ninja has introduced a --quiet option, but it is currently too new to be in any of our test distributions.  

M test/src/meson.build

Fix memory leak in file bundle backup/restore.

commit   : cd8db7d9e53e041ad6fb31f2f015541c1d24abc2    
  
author   : David Steele <david@pgmasters.net>    
date     : Thu, 22 Sep 2022 22:42:01 -0700    
  
committer: GitHub <noreply@github.com>    
date     : Thu, 22 Sep 2022 22:42:01 -0700    

Click here for diff

When converting restoreFile() to support file bundling in 34d64957 there were some I/O objects that were only freed at the end of the function that should have been freed at the end of each loop. Wrap the loops in temp mem contexts to fix this.
  

  
Do the same to backupFile() since it would have a similar leak when resuming a backup. Since file bundles cannot be resumed the leak would not be as severe, but still seems worth doing to protect against future leaks.

M doc/xml/release.xml
M src/command/backup/file.c
M src/command/restore/file.c

Add missed release note for b05d31f5.

commit   : d50a4442e45efa8d1a16c9bf68f2337367c42835    
  
author   : David Steele <david@pgmasters.net>    
date     : Thu, 22 Sep 2022 10:35:41 -0700    
  
committer: David Steele <david@pgmasters.net>    
date     : Thu, 22 Sep 2022 10:35:41 -0700    

Click here for diff

M doc/xml/release.xml

Update config.guess and config.sub to latest versions.

commit   : 9483844f7fc9a5eac64a87d3c80cfea3fd592e4e    
  
author   : David Steele <david@pgmasters.net>    
date     : Mon, 19 Sep 2022 10:25:38 -0700    
  
committer: David Steele <david@pgmasters.net>    
date     : Mon, 19 Sep 2022 10:25:38 -0700    

Click here for diff

M src/build/config.guess
M src/build/config.sub

Begin v2.42 development.

commit   : ab4209ebcbe23b5c3b759ba67f0e9bdc6cb66280    
  
author   : David Steele <david@pgmasters.net>    
date     : Mon, 19 Sep 2022 10:17:25 -0700    
  
committer: David Steele <david@pgmasters.net>    
date     : Mon, 19 Sep 2022 10:17:25 -0700    

Click here for diff

M doc/resource/git-history.cache
M doc/xml/release.xml
M meson.build
M src/build/configure.ac
M src/configure
M src/version.h