forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitc64086b
committed
Reorder actions in ProcArrayApplyRecoveryInfo()
Since5a1dfde, 2PC filenames use FullTransactionId. Thus, it needs toconvert TransactionId to FullTransactionId in StandbyTransactionIdIsPrepared()using TransamVariables->nextXid. However, ProcArrayApplyRecoveryInfo()first releases locks with usage StandbyTransactionIdIsPrepared(), then advancesTransamVariables->nextXid. This sequence of actions could cause errors.This commit makes ProcArrayApplyRecoveryInfo() advanceTransamVariables->nextXid before releasing locks.Reported-by: Thomas Munro, Michael PaquierDiscussion:https://postgr.es/m/CA%2BhUKGLj_ve1_pNAnxwYU9rDcv7GOhsYXJt7jMKSA%3D5-6ss-Cw%40mail.gmail.comDiscussion:https://postgr.es/m/Zadp9f4E1MYvMJqe%40paquier.xyz1 parent6db4598 commitc64086b
1 file changed
+11
-5
lines changedLines changed: 11 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1053 | 1053 |
| |
1054 | 1054 |
| |
1055 | 1055 |
| |
| 1056 | + | |
1056 | 1057 |
| |
1057 | 1058 |
| |
1058 | 1059 |
| |
| |||
1066 | 1067 |
| |
1067 | 1068 |
| |
1068 | 1069 |
| |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
1069 | 1080 |
| |
1070 | 1081 |
| |
1071 | 1082 |
| |
| |||
1275 | 1286 |
| |
1276 | 1287 |
| |
1277 | 1288 |
| |
1278 |
| - | |
1279 |
| - | |
1280 |
| - | |
1281 |
| - | |
1282 |
| - | |
1283 | 1289 |
| |
1284 | 1290 |
| |
1285 | 1291 |
| |
|
0 commit comments
Comments
(0)