mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-23 07:06:30 +00:00
Add %n/node id format option for 'event_notification_command'
This commit is contained in:
@@ -1235,6 +1235,12 @@ create_event_record(PGconn *conn, t_configuration_options *options, int node_id,
|
||||
{
|
||||
switch (src_ptr[1])
|
||||
{
|
||||
case 'n':
|
||||
/* %n: node id */
|
||||
src_ptr++;
|
||||
snprintf(dst_ptr, end_ptr - dst_ptr, "%i", node_id);
|
||||
dst_ptr += strlen(dst_ptr);
|
||||
break;
|
||||
case 'e':
|
||||
/* %e: event type */
|
||||
src_ptr++;
|
||||
|
||||
Reference in New Issue
Block a user