- Notifications
You must be signed in to change notification settings - Fork5k
Commit5ec8b01
committed
MemoryContextCreate: assert parent is valid and different from node.
The case of "node == parent" might seem impossible, since we justallocated the new node. But it's possible if parent is a danglingreference to a recently-deleted context. In fact, given aset.c'shabit of recycling contexts, it's actually rather likely if that's so.If we'd had this assertion before, it would have simplified debugginga recently-identified walsender issue.Reported-by: Anthonin Bonnefoy <anthonin.bonnefoy@datadoghq.com>Author: Tom Lane <tgl@sss.pgh.pa.us>Discussion:https://postgr.es/m/CAO6_XqoJA7-_G6t7Uqe5nWF3nj+QBGn4F6Ptp=rUGDr0zo+KvA@mail.gmail.com1 parent706cbed commit5ec8b01
1 file changed
+4
-0
lines changedLines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1181 | 1181 |
| |
1182 | 1182 |
| |
1183 | 1183 |
| |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
| 1187 | + | |
1184 | 1188 |
| |
1185 | 1189 |
| |
1186 | 1190 |
| |
|
0 commit comments
Comments
(0)