diff options
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-handler.c')
| -rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-handler.c | 13 | 
1 files changed, 10 insertions, 3 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-handler.c b/xlators/mgmt/glusterd/src/glusterd-handler.c index 0750a278d7b..163db6df8db 100644 --- a/xlators/mgmt/glusterd/src/glusterd-handler.c +++ b/xlators/mgmt/glusterd/src/glusterd-handler.c @@ -5751,9 +5751,16 @@ __glusterd_peer_rpc_notify (struct rpc_clnt *rpc, void *mydata,                  peerinfo->generation = uatomic_add_return                                                     (&conf->generation, 1);                  peerctx->peerinfo_gen = peerinfo->generation; -                gf_event (EVENT_PEER_CONNECT, "host=%s;uuid=%s", -                          peerinfo->hostname, uuid_utoa (peerinfo->uuid)); - +                /* EVENT_PEER_CONNECT will only be sent if peerctx->uuid is not +                 * NULL, otherwise it indicates this RPC_CLNT_CONNECT is from a +                 * peer probe trigger and given we already generate an event for +                 * peer probe this would be unnecessary. +                 */ +                if (!gf_uuid_is_null (peerinfo->uuid)) { +                        gf_event (EVENT_PEER_CONNECT, "host=%s;uuid=%s", +                                  peerinfo->hostname, +                                  uuid_utoa (peerinfo->uuid)); +                }                  ret = glusterd_peer_dump_version (this, rpc, peerctx);                  if (ret)                          gf_msg (this->name, GF_LOG_ERROR, 0,  | 
