summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKotresh HR <khiremat@redhat.com>2018-10-30 10:56:52 +0530
committerShyamsundar Ranganathan <srangana@redhat.com>2018-11-08 14:35:54 +0000
commita2e5f1dbdfff7d1b09b383f5f916d6ae0bc6cb73 (patch)
tree03b08ffb0460fc588f387852faace01d96df62aa
parent1212fb7330ffe0996c5501de3158e222ab3038b7 (diff)
posix/ctime: Avoid log flood in posix_update_utime_in_mdata
posix_update_utime_in_mdata() unconditionally logs an error if consistent time attributes features 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/21520/ > BUG: 1644129 > Change-Id: I9a1f9e7ada3366d2830f18d81f16a1461040092e > Signed-off-by: Kotresh HR <khiremat@redhat.com> fixes: bz#1644526 Change-Id: I9a1f9e7ada3366d2830f18d81f16a1461040092e Signed-off-by: Kotresh HR <khiremat@redhat.com>
-rw-r--r--xlators/storage/posix/src/posix-metadata.c4
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 947d7be2d68..3fce0b23d1f 100644
--- a/xlators/storage/posix/src/posix-metadata.c
+++ b/xlators/storage/posix/src/posix-metadata.c
@@ -547,10 +547,6 @@ posix_update_utime_in_mdata(xlator_t *this, const char *real_path, int fd,
real_path, uuid_utoa(inode->gfid));
}
}
-
- } else {
- gf_msg(this->name, GF_LOG_WARNING, errno, P_MSG_SETMDATA_FAILED,
- "posix utime set mdata failed on file");
}
return;
}