Cleanup for pull-up-isReset patch.
Tom Lane <tgl@sss.pgh.pa.us>
Cleanup for pull-up-isReset patch. Clear isReset before, not after, calling the context-specific alloc method, so as to preserve the option to do a tail call in MemoryContextAlloc (and also so this code isn't assuming that a failed alloc call won't have changed the context's state before failing). Fix missed direct invocation of reset method. Reformat a comment.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/mmgr/aset.c | modified | +5 −5 |
| src/backend/utils/mmgr/mcxt.c | modified | +7 −6 |