From 3dc782527482d2c62c9344669ccaa2dc42481a58 Mon Sep 17 00:00:00 2001 From: Pranith K Date: Mon, 11 Oct 2010 03:26:00 +0000 Subject: mgmt/glusterd: handle reqs from unknown peers for friend sm Signed-off-by: Pranith Kumar K Signed-off-by: Vijay Bellur BUG: 1838 (handle peer detach gracefully in case of lost frames) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1838 --- xlators/mgmt/glusterd/src/glusterd-sm.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'xlators/mgmt/glusterd/src/glusterd-sm.c') diff --git a/xlators/mgmt/glusterd/src/glusterd-sm.c b/xlators/mgmt/glusterd/src/glusterd-sm.c index 6061d0276..385e62a40 100644 --- a/xlators/mgmt/glusterd/src/glusterd-sm.c +++ b/xlators/mgmt/glusterd/src/glusterd-sm.c @@ -765,7 +765,12 @@ glusterd_friend_sm () event_type = event->event; peerinfo = event->peerinfo; if (!peerinfo) { - GF_ASSERT (0); + gf_log ("glusterd", GF_LOG_CRITICAL, "Received" + " event %s with empty peer info", + glusterd_friend_sm_event_name_get(event_type)); + + GF_FREE (event); + continue; } state = glusterd_friend_state_table[peerinfo->state.state]; -- cgit