summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt
diff options
context:
space:
mode:
authorPranith Kumar K <pranithk@gluster.com>2010-09-21 05:37:10 +0000
committerVijay Bellur <vijay@dev.gluster.com>2010-09-21 06:26:23 -0700
commitbd1fa94c8e26cb34566ad460092c2089597e2b17 (patch)
treecd48cdc71ff7deb75e712c39dd34f87841741190 /xlators/mgmt
parent6dbd6185483591fc2f83beee9d2766d1ea0c61a4 (diff)
mgmt/glusterd: print critical log for responses from unknown peers
Signed-off-by: Pranith Kumar K <pranithk@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1490 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1490
Diffstat (limited to 'xlators/mgmt')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd3_1-mops.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd3_1-mops.c b/xlators/mgmt/glusterd/src/glusterd3_1-mops.c
index 99b5f7b4e5d..2d0b223a956 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) {