From 1fc3aed7cf33b96f33693eee3c0551a0ab6a1f0f Mon Sep 17 00:00:00 2001 From: Raghavendra Bhat Date: Wed, 15 Sep 2010 01:25:51 +0000 Subject: check if the peer is connected before updating friend and send response once befriended Signed-off-by: Raghavendra Bhat Signed-off-by: Vijay Bellur BUG: 1601 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1601 --- xlators/mgmt/glusterd/src/glusterd3_1-mops.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'xlators/mgmt/glusterd/src/glusterd3_1-mops.c') diff --git a/xlators/mgmt/glusterd/src/glusterd3_1-mops.c b/xlators/mgmt/glusterd/src/glusterd3_1-mops.c index f0d7931f97b..a9dfa6d411b 100644 --- a/xlators/mgmt/glusterd/src/glusterd3_1-mops.c +++ b/xlators/mgmt/glusterd/src/glusterd3_1-mops.c @@ -888,6 +888,8 @@ glusterd3_1_friend_update (call_frame_t *frame, xlator_t *this, uuid_copy (req.uuid, priv->uuid); list_for_each_entry (peerinfo, &priv->peers, uuid_list) { + if (!peerinfo->connected) + continue; dummy_frame = create_frame (this, this->ctx->pool); ret = glusterd_submit_request (peerinfo, &req, dummy_frame, priv->mgmt, -- cgit