diff options
author | Vijay Bellur <vbellur@redhat.com> | 2018-07-21 04:27:12 -0700 |
---|---|---|
committer | Kotresh HR <khiremat@redhat.com> | 2018-09-17 04:56:46 +0000 |
commit | 1dc54679178d03626ec06b9e58a4d24732c1de13 (patch) | |
tree | 94bc3d94ff4528056ef49dd8d027e6308cf43dc1 | |
parent | deafd5a4f8440fa2a6f54595722e6fd1d4b6ed55 (diff) |
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 <vbellur@redhat.com>
(cherry picked from commit e0df887ba044ce92e9a2822be9261d0f712b02bd)
Change-Id: I82a78f2f8ce5ab518f8cdf6d9086a97049712f75
fixes: bz#1629548
Signed-off-by: Vijay Bellur <vbellur@redhat.com>
-rw-r--r-- | xlators/storage/posix/src/posix-metadata.c | 4 |
1 files changed, 0 insertions, 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; } |