- Notifications
You must be signed in to change notification settings - Fork5
Commitced83f7

Michael Paquier
Fix WAL segment file generation
Name file of WAL segment was generated using the API of xlog_internal.hcalled XlogFileName, based on XLogSegNo and not XLogRecPtr as theprevious code assumed. This leaded to backup incorrect, actually toomany WAL files in the archive code path because the analysis was basedon a name completely fucked up. This commit fixes at the same time anissue in search_next_wal where the function could loop for a too longamount of time, eating much CPU when looking for the next WAL file.Regression tests are passing cleanly with this patch.1 parent78d92ff commitced83f7
4 files changed
+11
-11
lines changedLines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
433 | 433 |
| |
434 | 434 |
| |
435 | 435 |
| |
436 |
| - | |
| 436 | + | |
437 | 437 |
| |
438 | 438 |
| |
439 | 439 |
| |
| |||
485 | 485 |
| |
486 | 486 |
| |
487 | 487 |
| |
488 |
| - | |
| 488 | + | |
489 | 489 |
| |
490 | 490 |
| |
491 | 491 |
| |
| |||
1023 | 1023 |
| |
1024 | 1024 |
| |
1025 | 1025 |
| |
1026 |
| - | |
| 1026 | + | |
1027 | 1027 |
| |
1028 | 1028 |
| |
1029 | 1029 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
307 | 307 |
| |
308 | 308 |
| |
309 | 309 |
| |
310 |
| - | |
| 310 | + | |
311 | 311 |
| |
312 | 312 |
| |
313 | 313 |
| |
|
Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
992 | 992 |
| |
993 | 993 |
| |
994 | 994 |
| |
995 |
| - | |
| 995 | + | |
996 | 996 |
| |
997 | 997 |
| |
998 | 998 |
| |
| |||
1021 | 1021 |
| |
1022 | 1022 |
| |
1023 | 1023 |
| |
1024 |
| - | |
1025 |
| - | |
| 1024 | + | |
| 1025 | + | |
1026 | 1026 |
| |
1027 | 1027 |
| |
1028 | 1028 |
| |
|
Lines changed: 4 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
73 | 73 |
| |
74 | 74 |
| |
75 | 75 |
| |
76 |
| - | |
| 76 | + | |
77 | 77 |
| |
78 |
| - | |
79 |
| - | |
80 |
| - | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
81 | 81 |
|
0 commit comments
Comments
(0)