- Notifications
You must be signed in to change notification settings - Fork5.2k
Commitf7dfccf
Fix assertion failure with latch wait in single-user mode
LatchWaitSetPostmasterDeathPos, the latch event position for thepostmaster death event, is initialized under IsUnderPostmaster.WaitLatch() considered it as a valid wait target in single-user mode(!IsUnderPostmaster), which was incorrect.One code path found to fail with an assertion failure is a database dropin single-user mode while waiting in WaitForProcSignalBarrier() afterthe drop.Oversight in commit84e5b2f.Author: Patrick Stählin <me@packi.ch>Co-authored-by: Ronan Dunklau <ronan.dunklau@aiven.io>Discussion:https://postgr.es/m/18996-3a2744c8140488de@postgresql.orgBackpatch-through: 181 parent2973b1c commitf7dfccf
1 file changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
190 | | - | |
191 | | - | |
192 | | - | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
193 | 195 | | |
194 | 196 | | |
195 | 197 | | |
| |||
0 commit comments
Comments
(0)