forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit571f7f7

Amit Kapila
To improve the code, move the error check in logical_read_xlog_page().
Commit0fdab27 changed the code to wait for WAL to be available beforedetermining the timeline but forgot to move the failure check.This change is to make the related code easier to understand and enhanceotherwise there is no bug in the current code.In the passing, improve the nearby comments to explain why we determineam_cascading_walsender after waiting for the required WAL.Author: Peter SmithReviewed-by: Bertrand Drouvot, Amit KapilaDiscussion:https://postgr.es/m/CAHut+PvqX49fusLyXspV1Mmd_EekPtXG0oT146vZjcb9XDvNgw@mail.gmail.com1 parentb68b29b commit571f7f7
1 file changed
+9
-8
lines changedLines changed: 9 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1057 | 1057 |
| |
1058 | 1058 |
| |
1059 | 1059 |
| |
1060 |
| - | |
1061 |
| - | |
| 1060 | + | |
1062 | 1061 |
| |
1063 | 1062 |
| |
1064 | 1063 |
| |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
1065 | 1068 |
| |
1066 | 1069 |
| |
1067 | 1070 |
| |
1068 |
| - | |
1069 |
| - | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
1070 | 1075 |
| |
1071 | 1076 |
| |
1072 | 1077 |
| |
| |||
1081 | 1086 |
| |
1082 | 1087 |
| |
1083 | 1088 |
| |
1084 |
| - | |
1085 |
| - | |
1086 |
| - | |
1087 |
| - | |
1088 | 1089 |
| |
1089 | 1090 |
| |
1090 | 1091 |
| |
|
0 commit comments
Comments
(0)