summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVijay Bellur <vijay@gluster.com>2011-04-06 00:59:04 +0000
committerVijay Bellur <vijay@gluster.com>2011-04-06 10:52:02 -0700
commit9bff4a73fedd388bb9c57a3e999361540ac333eb (patch)
treed0f0b22fb6ce62baf29f89c8389a8c920bcbee17
parent7bfaed649bf8a479afd051ea3c5adc7a4717b2fa (diff)
protocol/client: Avoid logging when EAGAIN is received for *lk requests
Signed-off-by: Vijay Bellur <vijay@gluster.com> BUG: 1887 (logging mess) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1887
-rw-r--r--xlators/protocol/client/src/client3_1-fops.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/xlators/protocol/client/src/client3_1-fops.c b/xlators/protocol/client/src/client3_1-fops.c
index 9d0ed5ace5a..5b6971dde13 100644
--- a/xlators/protocol/client/src/client3_1-fops.c
+++ b/xlators/protocol/client/src/client3_1-fops.c
@@ -1220,7 +1220,7 @@ client3_1_inodelk_cbk (struct rpc_req *req, struct iovec *iov, int count,
}
out:
- if (rsp.op_ret == -1) {
+ if ((rsp.op_ret == -1) && (EAGAIN != rsp.op_errno)) {
gf_log (this->name, GF_LOG_INFO, "remote operation failed: %s",
strerror (gf_error_to_errno (rsp.op_errno)));
}
@@ -1257,7 +1257,7 @@ client3_1_finodelk_cbk (struct rpc_req *req, struct iovec *iov, int count,
}
out:
- if (rsp.op_ret == -1) {
+ if ((rsp.op_ret == -1) && (EAGAIN != rsp.op_errno)) {
gf_log (this->name, GF_LOG_INFO, "remote operation failed: %s",
strerror (gf_error_to_errno (rsp.op_errno)));
}
@@ -1295,7 +1295,7 @@ client3_1_entrylk_cbk (struct rpc_req *req, struct iovec *iov, int count,
out:
- if (rsp.op_ret == -1) {
+ if ((rsp.op_ret == -1) && (EAGAIN != rsp.op_errno)) {
gf_log (this->name, GF_LOG_INFO, "remote operation failed: %s",
strerror (gf_error_to_errno (rsp.op_errno)));
}
@@ -1332,7 +1332,7 @@ client3_1_fentrylk_cbk (struct rpc_req *req, struct iovec *iov, int count,
}
out:
- if (rsp.op_ret == -1) {
+ if ((rsp.op_ret == -1) && (EAGAIN != rsp.op_errno)) {
gf_log (this->name, GF_LOG_INFO, "remote operation failed: %s",
strerror (gf_error_to_errno (rsp.op_errno)));
}
@@ -1824,7 +1824,7 @@ client3_1_lk_cbk (struct rpc_req *req, struct iovec *iov, int count,
client_local_wipe (local);
out:
- if (rsp.op_ret == -1) {
+ if ((rsp.op_ret == -1) && (EAGAIN != rsp.op_errno)) {
gf_log (this->name, GF_LOG_INFO, "remote operation failed: %s",
strerror (gf_error_to_errno (rsp.op_errno)));
}