summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src
diff options
context:
space:
mode:
authorKrutika Dhananjay <kdhananj@redhat.com>2015-05-13 14:25:44 +0200
committerPranith Kumar Karampuri <pkarampu@redhat.com>2015-05-27 22:40:36 -0700
commitf92a415dd4fdd34c97fa6af4af528e1b50a4265f (patch)
tree3c84efb3ff893611e68822dadb961e67b3372f8a /libglusterfs/src
parent9e1bb640983f72858aeabd793bbb7fc8b5c71b09 (diff)
protocol/client,server: Move EEXIST logs in mkdir and mknod to DEBUG level
Change-Id: I0481258de8da36cbee7c046f53b20359badaf064 BUG: 1221889 Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com> Reviewed-on: http://review.gluster.org/10791 Tested-by: Gluster Build System <jenkins@build.gluster.com> Tested-by: NetBSD Build System Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Diffstat (limited to 'libglusterfs/src')
-rw-r--r--libglusterfs/src/common-utils.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libglusterfs/src/common-utils.c b/libglusterfs/src/common-utils.c
index fc4ae123916..4bcef6ae33f 100644
--- a/libglusterfs/src/common-utils.c
+++ b/libglusterfs/src/common-utils.c
@@ -3669,6 +3669,10 @@ fop_log_level (glusterfs_fop_t fop, int op_errno)
return GF_LOG_DEBUG;
}
+ if (fop == GF_FOP_MKNOD || fop == GF_FOP_MKDIR)
+ if (op_errno == EEXIST)
+ return GF_LOG_DEBUG;
+
return GF_LOG_ERROR;
}