forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit6c24801
committed
pg_combinebackup: When reconstructing, avoid double slash in filename.
This function is always called with a relative_path that ends in aslash, so there's no need to insert a second one. So, don't. Instead,add an assertion to verify that nothing gets broken in the future, andadjust the comments.While this is not a critical bug, the duplicate slash is visible inerror messages, which could create confusion, so back-patch to v17.This is also better in that it keeps the code consistent acrossbranches.Patch by me, reviewed by Bertrand Drouvot and Amul Sul.Discussion:http://postgr.es/m/CA+TgmoaD7dBYPqe7kMtO0dyto7rd0rUh7joh=JPUSaFszKY6Pg@mail.gmail.com1 parent7ac744e commit6c24801
1 file changed
+9
-4
lines changedLines changed: 9 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
77 | 77 |
| |
78 | 78 |
| |
79 | 79 |
| |
80 |
| - | |
81 |
| - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
82 | 83 |
| |
83 | 84 |
| |
84 | 85 |
| |
| |||
111 | 112 |
| |
112 | 113 |
| |
113 | 114 |
| |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
114 | 119 |
| |
115 | 120 |
| |
116 | 121 |
| |
| |||
174 | 179 |
| |
175 | 180 |
| |
176 | 181 |
| |
177 |
| - | |
| 182 | + | |
178 | 183 |
| |
179 | 184 |
| |
180 | 185 |
| |
181 |
| - | |
| 186 | + | |
182 | 187 |
| |
183 | 188 |
| |
184 | 189 |
| |
|
0 commit comments
Comments
(0)