forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit1fe1f42
committed
Acquire ProcArrayLock exclusively in ProcArrayClearTransaction.
This corrects an oversight by me in2072932, which madeProcArrayClearTransaction() increment xactCompletionCount. That requires anexclusive lock, obviously.There's other approaches that avoid the exclusive acquisition, but given that a2PC commit is fairly heavyweight, it doesn't seem worth doing so. I've not beenable to measure a performance difference, unsurprisingly. I did add acomment documenting that we could do so, should it ever become a bottleneck.Reported-By: Tom Lane <tgl@sss.pgh.pa.us>Author: Andres Freund <andres@anarazel.de>Discussion:https://postgr.es/m/1355915.1597794204@sss.pgh.pa.us1 parent2072932 commit1fe1f42
1 file changed
+13
-6
lines changedLines changed: 13 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
840 | 840 |
| |
841 | 841 |
| |
842 | 842 |
| |
843 |
| - | |
844 |
| - | |
845 |
| - | |
846 |
| - | |
847 |
| - | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
848 | 855 |
| |
849 |
| - | |
| 856 | + | |
850 | 857 |
| |
851 | 858 |
| |
852 | 859 |
| |
|
0 commit comments
Comments
(0)