Blob Blame History Raw
From 7e281cb0253b5a58e405fecbbbb88dc7e9719991 Mon Sep 17 00:00:00 2001
From: Ashish Pandey <aspandey@redhat.com>
Date: Thu, 14 May 2015 17:06:25 +0530
Subject: [PATCH 34/57] ec : Changing log level to DEBUG in case of ENOENT

      Backport of http://review.gluster.org/10784

Change-Id: I264e47ca679d8b57cd8c80306c07514e826f92d8
BUG: 1224123

Signed-off-by: Ashish Pandey <aspandey@redhat.com>
Change-Id: Ice06e50185a092b35ca4150b86ada5381bdae0d5
Reviewed-on: https://code.engineering.redhat.com/gerrit/50431
Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Tested-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
---
 xlators/cluster/ec/src/ec-common.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/xlators/cluster/ec/src/ec-common.c b/xlators/cluster/ec/src/ec-common.c
index 46c9eec..f33384b 100644
--- a/xlators/cluster/ec/src/ec-common.c
+++ b/xlators/cluster/ec/src/ec-common.c
@@ -1440,8 +1440,9 @@ int32_t ec_update_size_version_done(call_frame_t * frame, void * cookie,
     ec_inode_t *ctx;
 
     if (op_ret < 0) {
-        gf_log(fop->xl->name, GF_LOG_ERROR, "Failed to update version and "
-                                            "size (error %d)", op_errno);
+        gf_log(fop->xl->name, fop_log_level (fop->id, op_errno),
+                              "Failed to update version and"
+                              " size (error %d)", op_errno);
     } else {
         fop->parent->mask &= fop->good;
         link = fop->data;
-- 
1.7.1