diff options
author | Venkatesh Somyajulu <vsomyaju@redhat.com> | 2012-10-12 18:07:04 +0530 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2012-10-12 09:18:45 -0700 |
commit | 101858ca54e6cba44cde2baf4ceac4a4b339885b (patch) | |
tree | 9b4094e367f44382b312079622c9a413c196ab73 /xlators | |
parent | 760a564f2cd9a3271c8151e1ce65c8178e220250 (diff) |
protocol/client: Conditional logging in client3_3_unlink_cbk
Change-Id: I4af398362cdb3f99782dcd3728988e4cf1fbb479
BUG: 861925
Signed-off-by: Venkatesh Somyajulu <vsomyaju@redhat.com>
Reviewed-on: http://review.gluster.org/4069
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'xlators')
-rw-r--r-- | xlators/protocol/client/src/client-rpc-fops.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/xlators/protocol/client/src/client-rpc-fops.c b/xlators/protocol/client/src/client-rpc-fops.c index d541c35eb..d5114e073 100644 --- a/xlators/protocol/client/src/client-rpc-fops.c +++ b/xlators/protocol/client/src/client-rpc-fops.c @@ -636,9 +636,13 @@ client3_3_unlink_cbk (struct rpc_req *req, struct iovec *iov, int count, out: if (rsp.op_ret == -1) { - gf_log (this->name, GF_LOG_WARNING, "remote operation failed: %s", + gf_log (this->name, + ((gf_error_to_errno (rsp.op_errno) == ENOENT) + ? GF_LOG_DEBUG : GF_LOG_WARNING), + "remote operation failed: %s", strerror (gf_error_to_errno (rsp.op_errno))); } + CLIENT_STACK_UNWIND (unlink, frame, rsp.op_ret, gf_error_to_errno (rsp.op_errno), &preparent, &postparent, xdata); |