forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit2f39106
committed
Replace CAS loop with single TAS in ProcArrayGroupClearXid()
Single pg_atomic_exchange_u32() is expected to be faster than loop ofpg_atomic_compare_exchange_u32(). Also, it would be consistent withclog group update code.Discussion:https://postgr.es/m/CAPpHfdtxLsC-bqfxFcHswZ91OxXcZVNDBBVfg9tAWU0jvn1tQA%40mail.gmail.comReviewed-by: Amit Kapila1 parentdb361db commit2f39106
1 file changed
+2
-8
lines changedLines changed: 2 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
542 | 542 |
| |
543 | 543 |
| |
544 | 544 |
| |
545 |
| - | |
546 |
| - | |
547 |
| - | |
548 |
| - | |
549 |
| - | |
550 |
| - | |
551 |
| - | |
552 |
| - | |
| 545 | + | |
| 546 | + | |
553 | 547 |
| |
554 | 548 |
| |
555 | 549 |
| |
|
0 commit comments
Comments
(0)