forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit03f9cd9
committed
Remove useless SHA256 initialization when not using backup manifests
Attempting to take a base backup with Postgres linking to a build ofOpenSSL with FIPS enabled currently fails with or even without a backupmanifest requested because of this mandatory SHA256 initialization usedfor the manifest file itself. However, there is no need to do thisinitialization at all if backup manifests are not needed because thereis no data to append to the manifest.Note that being able to use backup manifests with OpenSSL+FIPS requiresa switch of the SHA2 implementation to use EVP, which would cause an ABIbreakage so this cannot be backpatched to 13 as it has been alreadyreleased, but at least avoiding this SHA256 initialization gives usersthe possibility to take a base backup even when specifying --no-manifestwith pg_basebackup.Author: Michael PaquierDiscussion:https://postgr.es/m/20201110020014.GE1887@paquier.xyzBackpatch-through: 131 parent42c63ab commit03f9cd9
1 file changed
+7
-2
lines changedLines changed: 7 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
57 | 57 |
| |
58 | 58 |
| |
59 | 59 |
| |
| 60 | + | |
| 61 | + | |
| 62 | + | |
60 | 63 |
| |
61 | 64 |
| |
62 | 65 |
| |
| 66 | + | |
63 | 67 |
| |
64 |
| - | |
65 |
| - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
66 | 71 |
| |
67 | 72 |
| |
68 | 73 |
| |
|
0 commit comments
Comments
(0)