From 389c0ab9c02e679ab548cb9cd428fc07fc12caf1 Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Mon, 11 May 2020 13:26:35 +0900 Subject: [PATCH] Clarify use of function parameter --- dbutils.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/dbutils.c b/dbutils.c index 61e70b6f..69818d1e 100644 --- a/dbutils.c +++ b/dbutils.c @@ -2522,7 +2522,10 @@ resume_wal_replay(PGconn *conn) /* Node record functions */ /* ===================== */ - +/* + * Note: init_defaults may only be false when the caller is refreshing a previously + * populated record. + */ static RecordStatus _get_node_record(PGconn *conn, char *sqlquery, t_node_info *node_info, bool init_defaults) { @@ -2553,6 +2556,10 @@ _get_node_record(PGconn *conn, char *sqlquery, t_node_info *node_info, bool init } +/* + * Note: init_defaults may only be false when the caller is refreshing a previously + * populated record. + */ static void _populate_node_record(PGresult *res, t_node_info *node_info, int row, bool init_defaults) {