Skip to content

Commit 5d7c1eb

Browse files
authored
Merge pull request #108 from fly-apps/bug-fix
Remove flag that's no longer being used
2 parents b37e73d + 96a06b5 commit 5d7c1eb

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

cmd/event_handler/main.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ const eventLogFile = "/data/event.log"
1717
func main() {
1818
event := flag.String("event", "", "event type")
1919
nodeID := flag.Int("node-id", 0, "the node id")
20-
// This might not actually always be the new primary. %p from repmgr is variably the new or
21-
// old primary. In the events that we subscribe to it's always either empty or the new primary.
22-
// In the future if we subscribe to repmgrd_failover_promote, then we would have to change this
23-
// name.
2420
success := flag.String("success", "", "success (1) failure (0)")
2521
details := flag.String("details", "", "details")
2622
flag.Parse()

internal/flypg/repmgr.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ func (r *RepMgr) setDefaults() {
144144
"use_replication_slots": "yes",
145145
"promote_command": fmt.Sprintf("'repmgr standby promote -f %s --log-to-file'", r.ConfigPath),
146146
"follow_command": fmt.Sprintf("'repmgr standby follow -f %s --log-to-file --upstream-node-id=%%n'", r.ConfigPath),
147-
"event_notification_command": fmt.Sprintf("'/usr/local/bin/event_handler -node-id %%n -event %%e -success %%s -details \"%%d\" -new-node-id \\'%%p\\''"),
147+
"event_notification_command": fmt.Sprintf("'/usr/local/bin/event_handler -node-id %%n -event %%e -success %%s -details \"%%d\"'"),
148148
"event_notifications": "'child_node_disconnect,child_node_reconnect,child_node_new_connect'",
149149
"location": r.Region,
150150
"primary_visibility_consensus": true,

0 commit comments

Comments
 (0)