forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit2103430
committed
Fix parsing of xlog file name in pg_receivexlog.
The parsing of WAL filenames of segments larger than > 255 was broken,making pg_receivexlog unable to restart streaming after stopping it.The bug was introduced by the changes in 9.3 to represent WAL segment numberas a 64-bit integer instead of two ints, log and seg. To fix, replace theplain sscanf call with XLogFromFileName macro, which does the conversionfrom log+seg to a 64-bit integer correcly.Reported by Mika Eloranta.1 parente36ce0c commit2103430
1 file changed
+1
-10
lines changedLines changed: 1 addition & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
134 | 134 |
| |
135 | 135 |
| |
136 | 136 |
| |
137 |
| - | |
138 |
| - | |
139 | 137 |
| |
140 | 138 |
| |
141 | 139 |
| |
| |||
164 | 162 |
| |
165 | 163 |
| |
166 | 164 |
| |
167 |
| - | |
168 |
| - | |
169 |
| - | |
170 |
| - | |
171 |
| - | |
172 |
| - | |
173 |
| - | |
174 |
| - | |
| 165 | + | |
175 | 166 |
| |
176 | 167 |
| |
177 | 168 |
| |
|
0 commit comments
Comments
(0)