From bd1fa94c8e26cb34566ad460092c2089597e2b17 Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Tue, 21 Sep 2010 05:37:10 +0000 Subject: mgmt/glusterd: print critical log for responses from unknown peers Signed-off-by: Pranith Kumar K Signed-off-by: Vijay Bellur BUG: 1490 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1490 --- xlators/mgmt/glusterd/src/glusterd3_1-mops.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (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 99b5f7b4e..2d0b223a9 100644 --- a/xlators/mgmt/glusterd/src/glusterd3_1-mops.c +++ b/xlators/mgmt/glusterd/src/glusterd3_1-mops.c @@ -404,7 +404,8 @@ glusterd3_1_cluster_lock_cbk (struct rpc_req *req, struct iovec *iov, ret = glusterd_friend_find (rsp.uuid, NULL, &peerinfo); if (ret) { - GF_ASSERT (0); + gf_log ("", GF_LOG_CRITICAL, "Lock response received from " + "unknown peer: %s", str); } if (op_ret) { @@ -463,7 +464,8 @@ glusterd3_1_cluster_unlock_cbk (struct rpc_req *req, struct iovec *iov, ret = glusterd_friend_find (rsp.uuid, NULL, &peerinfo); if (ret) { - GF_ASSERT (0); + gf_log ("", GF_LOG_CRITICAL, "Unlock response received from " + "unknown peer %s", str); } if (op_ret) { @@ -523,7 +525,8 @@ glusterd3_1_stage_op_cbk (struct rpc_req *req, struct iovec *iov, ret = glusterd_friend_find (rsp.uuid, NULL, &peerinfo); if (ret) { - GF_ASSERT (0); + gf_log ("", GF_LOG_CRITICAL, "Stage response received from " + "unknown peer: %s", str); } if (op_ret) { @@ -667,7 +670,8 @@ glusterd3_1_commit_op_cbk (struct rpc_req *req, struct iovec *iov, ret = glusterd_friend_find (rsp.uuid, NULL, &peerinfo); if (ret) { - GF_ASSERT (0); + gf_log ("", GF_LOG_CRITICAL, "Commit response received from " + "unknown peer: %s", str); } if (op_ret) { -- cgit