+ static int probed = 0;
+
+ // Is the master late? If so, try probing it...
+ if (TIME > (config->cluster_last_hb + config->cluster_hb_timeout/8 + 11)) {
+ if (!probed) {
+ if (config->cluster_master_address) {
+ peer_send_message(config->cluster_master_address,
+ C_LASTSEEN, config->cluster_seq_number, NULL, 0);
+ probed = 1;
+ }
+ }
+ } else { // We got a recent heartbeat; reset the probe flag.
+ probed = 0;
+ }