From 1dc54679178d03626ec06b9e58a4d24732c1de13 Mon Sep 17 00:00:00 2001 From: Vijay Bellur Date: Sat, 21 Jul 2018 04:27:12 -0700 Subject: storage/posix: Avoid log flood in posix_set_parent_ctime() posix_set_parent_ctime() unconditionally logs an error if consistent time attributes is not enabled. This log does not add any value, prints an incorrect errno & floods the log file. Hence nuking this log message in this patch. Backport of : > Patch: https://review.gluster.org/20547/ > Change-Id: I82a78f2f8ce5ab518f8cdf6d9086a97049712f75 > BUG: 1607049 > Signed-off-by: Vijay Bellur (cherry picked from commit e0df887ba044ce92e9a2822be9261d0f712b02bd) Change-Id: I82a78f2f8ce5ab518f8cdf6d9086a97049712f75 fixes: bz#1629548 Signed-off-by: Vijay Bellur --- xlators/storage/posix/src/posix-metadata.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/xlators/storage/posix/src/posix-metadata.c b/xlators/storage/posix/src/posix-metadata.c index 00cd2409532..efaaa49e909 100644 --- a/xlators/storage/posix/src/posix-metadata.c +++ b/xlators/storage/posix/src/posix-metadata.c @@ -665,10 +665,6 @@ posix_set_parent_ctime (call_frame_t *frame, xlator_t *this, "posix set mdata failed on file: %s gfid:%s", real_path, uuid_utoa (inode->gfid)); } - } else { - gf_msg (this->name, GF_LOG_WARNING, errno, - P_MSG_SETMDATA_FAILED, - "posix parent set mdata failed on file"); } return; } -- cgit