forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit9b8d478
committed
Rework handling of OOM when allocating record buffer in XLOG reader.
Commit2c03216 changed allocate_recordbuf() so that it uses a palloc toallocate the read buffer and fails immediately when an out-of-memory errorshows up, even though its callers still expect that NULL is returned in thatcase. This bug is fixed making allocate_recordbuf() use a palloc_extendedwith MCXT_ALLOC_NO_OOM flag and return NULL in OOM case.Michael Paquier1 parent8c8a886 commit9b8d478
1 file changed
+7
-1
lines changedLines changed: 7 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
146 | 146 |
| |
147 | 147 |
| |
148 | 148 |
| |
149 |
| - | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
150 | 156 |
| |
151 | 157 |
| |
152 | 158 |
| |
|
0 commit comments
Comments
(0)