Clarify code comment

This commit is contained in:
Ian Barwick
2020-09-04 15:10:54 +09:00
parent 4c3aed2573
commit 146654bf0e

View File

@@ -3616,8 +3616,12 @@ can_use_pg_rewind(PGconn *conn, const char *data_directory, PQExpBufferData *rea
} }
// provided connection should be for the normal repmgr user /*
// upstream_node_record may be NULL or initialised to default values * NOTE:
* - the provided connection should be for the normal repmgr user
* - if upstream_node_record is not NULL, its "repluser" entry, if
* set, will be used as the fallback replication user
*/
bool bool
create_replication_slot(PGconn *conn, char *slot_name, t_node_info *upstream_node_record, PQExpBufferData *error_msg) create_replication_slot(PGconn *conn, char *slot_name, t_node_info *upstream_node_record, PQExpBufferData *error_msg)
{ {