forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit9fa9353
committed
Don't allocate memory inside an Assert() iff in a critical section.
HeapTupleHeaderGetCmax() asserts that it is only used if the tuple hasbeen updated by the current transaction. That check is correct andsensible but requires allocating memory if xmax is a multixact. Whenwal_level is set to logical cmax needs to be included in a wal record, generated inside a critical section, which can trigger the assertionadded in4a170ee.Reported-By: Steve Singer1 parent0564bbe commit9fa9353
1 file changed
+9
-1
lines changedLines changed: 9 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
41 | 41 |
| |
42 | 42 |
| |
43 | 43 |
| |
| 44 | + | |
44 | 45 |
| |
45 | 46 |
| |
46 | 47 |
| |
| |||
119 | 120 |
| |
120 | 121 |
| |
121 | 122 |
| |
122 |
| - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
123 | 131 |
| |
124 | 132 |
| |
125 | 133 |
| |
|
0 commit comments
Comments
(0)