forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit5ad165d
committed
Acquire spinlock when updating 2PC slot data during logical decoding creation
The creation of a logical decoding context in CreateDecodingContext()updates some data of its slot for two-phase transactions if enabled bythe caller, but the code forgot to acquire a spinlock when updatingthese fields like any other code paths. This could lead to the read ofinconsistent data.Oversight ina8fd13c.Author: Sawada MasahikoDiscussion:https://postgr.es/m/CAD21AoAD8_fp47191LKuecjDd3DYhoQ4TaucFco1_TEr_jQ-Zw@mail.gmail.comBackpatch-through: 151 parentf0e6d6d commit5ad165d
1 file changed
+2
-0
lines changedLines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
555 | 555 |
| |
556 | 556 |
| |
557 | 557 |
| |
| 558 | + | |
558 | 559 |
| |
559 | 560 |
| |
| 561 | + | |
560 | 562 |
| |
561 | 563 |
| |
562 | 564 |
| |
|
0 commit comments
Comments
(0)