diff options
author | Amar Tumballi <amar@gluster.com> | 2011-04-14 07:04:20 +0000 |
---|---|---|
committer | Anand Avati <avati@gluster.com> | 2011-04-14 10:02:55 -0700 |
commit | 4055c85a23043afdf3ad708d28aedc55805b1043 (patch) | |
tree | 2837731c7d63cbf81d7badd35a4d716c4ec94029 /xlators/features/marker/src/marker.c | |
parent | 9b0374043ebe59fa638b8af330ea1d403503c143 (diff) |
features/marker: fix the excessive logs in marker
Signed-off-by: Amar Tumballi <amar@gluster.com>
Signed-off-by: Anand Avati <avati@gluster.com>
BUG: 2754 ([glusterfs-3.2.0qa11]: excessive logging in marker)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2754
Diffstat (limited to 'xlators/features/marker/src/marker.c')
-rw-r--r-- | xlators/features/marker/src/marker.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/xlators/features/marker/src/marker.c b/xlators/features/marker/src/marker.c index d7125bb40..074ee5762 100644 --- a/xlators/features/marker/src/marker.c +++ b/xlators/features/marker/src/marker.c @@ -1484,15 +1484,17 @@ marker_setattr_cbk (call_frame_t *frame, void *cookie, xlator_t *this, marker_local_t *local = NULL; marker_conf_t *priv = NULL; - if (op_ret == -1) { - gf_log (this->name, GF_LOG_ERROR, "%s occured while " - "creating symlinks ", strerror (op_errno)); - } - local = (marker_local_t *) frame->local; frame->local = NULL; + if (op_ret == -1) { + gf_log (this->name, ((op_errno == ENOENT) ? GF_LOG_DEBUG : + GF_LOG_ERROR), + "%s occured while creating symlinks for %s", + strerror (op_errno), local->loc.path); + } + STACK_UNWIND_STRICT (setattr, frame, op_ret, op_errno, statpre, statpost); @@ -1660,7 +1662,7 @@ marker_lookup (call_frame_t *frame, xlator_t *this, if (ret == -1) goto err; - if (priv->feature_enabled & GF_QUOTA) + if ((priv->feature_enabled & GF_QUOTA) && xattr_req) quota_req_xattr (this, loc, xattr_req); wind: STACK_WIND (frame, marker_lookup_cbk, FIRST_CHILD(this), |