forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitc963e84
committed
Make origin data initialization consistent other fields in 2PC header
As of1eb6d65, the origin data is optionally stored in a 2PC fileheader, with the data filled in EndPrepare() even in the default casewhere there is no origin data to add. This was inconsistent with allthe other fields of TwoPhaseFileHeader which are initialized inStartPrepare(), so move the initialization of origin_lsn andorigin_timestamp there instead. The effect of missing theinitialization at this early stage is only cosmetic based on the currentlogic of the code, but could have led to issues in the long-term, and itis more consistent done this way.Reported-by: Ranier VilelaDiscussion:https://postgr.es/m/CAEudQAooECJ+gU_RZB-yhioPOV94R4ucoHAf68PiJhLpgpVpBw@mail.gmail.com1 parent994d767 commitc963e84
1 file changed
+3
-5
lines changedLines changed: 3 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1074 | 1074 |
| |
1075 | 1075 |
| |
1076 | 1076 |
| |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
1077 | 1080 |
| |
1078 | 1081 |
| |
1079 | 1082 |
| |
| |||
1133 | 1136 |
| |
1134 | 1137 |
| |
1135 | 1138 |
| |
1136 |
| - | |
1137 |
| - | |
1138 |
| - | |
1139 |
| - | |
1140 |
| - | |
1141 | 1139 |
| |
1142 | 1140 |
| |
1143 | 1141 |
| |
|
0 commit comments
Comments
(0)