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

Amit Kapila
Fix race condition in TransactionGroupUpdateXidStatus().
When we cannot immediately acquire XactSLRULock in exclusive mode atcommit time, we add ourselves to a list of processes that need their XIDsstatus update. We do this if the clog page where we need to update thecurrent transaction status is the same as the group leader's clog page,otherwise, we allow the caller to clear it by itself. Now, when we can'tadd ourselves to any group, we were not clearing the current proc if ithas already become a member of some group which was leading to anassertion failure when the same proc was assigned to another backend afterthe current backend exits.Reported-by: Alexander LakhinBug: 17072Author: Amit KapilaTested-By: Alexander LakhinBackpatch-through: 11, where it was introducedDiscussion:https://postgr.es/m/17072-2f8764857ef2c92a@postgresql.org1 parent34a8b64 commitb786304
1 file changed
+5
-0
lines changedLines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
451 | 451 |
| |
452 | 452 |
| |
453 | 453 |
| |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
454 | 458 |
| |
| 459 | + | |
455 | 460 |
| |
456 | 461 |
| |
457 | 462 |
| |
|
0 commit comments
Comments
(0)