You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2026-10-23 21:28:56 +03:00
Each of these was left behind when the code that used it was changed or removed. The compiler does not report them because the FUNCTION_LOG_PARAM*() macros count as a use. * backupFilePut() backupData: never used, present since1f2ce45eadded the function. * backupJobResult() bundle: decided whether the job key held a bundle id.efc09db7replaced that with a check on the key variant type. * restoreRecoveryWriteConf() manifest: found the pgdata path to get the owner for chown().3ff88ffbremoved the chown(). * restoreRecoveryWriteAutoConf() manifest: read backupOptionOnline to decide whether to write recovery.signal.9cceed6areplaced that condition. * exitSafe() signalType: built the "terminated on signal [SIGxxx]" message for command end.e13c4629moved that logging into the signal handler. * cmdEnd() code: selected the "completed successfully" message at command end.6361a061switched the test to errorMessage == NULL. * infoPgSet() type: set the catalog/control versions and validated the type.0a96764cremoved both.77c721ebrestored the catalog version logic using this->type, which the object already stores from infoPgNew(), so the parameter stayed unused. * walSegmentNext() pgVersion: skipped the FF segment for PostgreSQL < 9.3.77c721ebremoved that along with support for 9.0/9.1/9.2. walSegmentRange() and queueNeed() passed pgVersion only to reach walSegmentNext(), so remove it from those as well. * tlsSessionResultProcess() errorSys: passed errno to THROW_SYS_ERROR_CODE() for syscall errors.08242ee6removed that throw. The errno read there was not informative (usually 0), and the capture in tlsSessionResult() goes with it. * storageWriteSftpNew() user, group, timeModified, truncate: passed to the write interface initializer.a953aa74replaced the per-driver interface with a shared static, so the driver stopped passing them. storageSftpNewWrite() is the only caller and asserts that user and group are NULL, timeModified is 0, and truncate is true, so the values were fixed. Also remove the common/user.h include from the SFTP write driver, unused since87087facadded it.