diff options
author | Pranith K <pranithk@gluster.com> | 2010-10-11 03:26:00 +0000 |
---|---|---|
committer | Vijay Bellur <vijay@dev.gluster.com> | 2010-10-11 03:32:46 -0700 |
commit | 3dc782527482d2c62c9344669ccaa2dc42481a58 (patch) | |
tree | 2525af86d539725bf93564eb786eeeb0c10d9c38 /xlators/mgmt/glusterd/src/glusterd-sm.c | |
parent | eb99bee0246d5a43bbee7383b3809a360aa70018 (diff) |
mgmt/glusterd: handle reqs from unknown peers for friend sm
Signed-off-by: Pranith Kumar K <pranithk@gluster.com>
Signed-off-by: Vijay Bellur <vijay@dev.gluster.com>
BUG: 1838 (handle peer detach gracefully in case of lost frames)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1838
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-sm.c')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-sm.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-sm.c b/xlators/mgmt/glusterd/src/glusterd-sm.c index 6061d0276f2..385e62a40df 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]; |