Fix for bug:684: Watchdog node status not updating after rebooting.
authorMuhammad Usama <m.usama@highgo.ca>
Thu, 20 May 2021 12:51:32 +0000 (17:51 +0500)
committerMuhammad Usama <m.usama@gmail.com>
Thu, 20 May 2021 12:51:42 +0000 (17:51 +0500)
A node should broadcast its status to the whole cluster after
joining the cluster as standby.

src/watchdog/watchdog.c

index 0760f18c46d5ce41232391ea334dade0147da3a9..70f6c316ad18fdc1f24d253e03995ae71b89542e 100644 (file)
@@ -6232,6 +6232,9 @@ static int watchdog_state_machine_standby(WD_EVENTS event, WatchdogNode* wdNode,
                                        ereport(LOG,
                                                (errmsg("successfully joined the watchdog cluster as standby node"),
                                                         errdetail("our join coordinator request is accepted by cluster leader node \"%s\"",WD_MASTER_NODE->nodeName)));
+
+                                       /* broadcast our new state change to the cluster */
+                                       send_message_of_type(NULL, WD_INFO_MESSAGE, NULL);
                                }
                                else
                                {