Skip site navigation (1) Skip section navigation (2)

pgsql: Cleanup for pull-up-isReset patch.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Cleanup for pull-up-isReset patch.
Date: 2011-05-24 21:57:44
Message-ID: E1QOzbk-00017u-GU@gemulon.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/b23aeb6519651146cf35b2b91d24596f37b40794

Modified Files
--------------
src/backend/utils/mmgr/aset.c |   10 +++++-----
src/backend/utils/mmgr/mcxt.c |   13 +++++++------
2 files changed, 12 insertions(+), 11 deletions(-)

pgsql-committers by date

Next:From: Tom LaneDate: 2011-05-24 21:58:30
Subject: Re: pgsql: Pull up isReset flag from AllocSetContext to MemoryContext struc
Previous:From: Magnus HaganderDate: 2011-05-24 20:49:36
Subject: Re: pgsql: Add a "local" replication sample entry

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group