Re: Simplify newNode() - Mailing list pgsql-hackers

From Zhang Mingli
Subject Re: Simplify newNode()
Date
Msg-id bee3fb16-6182-405b-86e3-5767f27cb6ac@Spark
Whole thread Raw
In response to Simplify newNode()  (Heikki Linnakangas <hlinnaka@iki.fi>)
Responses Re: Simplify newNode()
List pgsql-hackers
Hi,

LGTM.

+ Assert(size >= sizeof(Node)); /* need the tag, at least */
+ result = (Node *) palloc0fast(size);
+ result->type = tag;

+ return result;
+}

How about moving the comments /* need the tag, at least */ after result->type = tag; by the way?



Zhang Mingli
www.hashdata.xyz

pgsql-hackers by date:

Previous
From: Peter Smith
Date:
Subject: Re: Synchronizing slots from primary to standby
Next
From: Junwang Zhao
Date:
Subject: Re: Simplify newNode()