diff options
author | Kotresh HR <khiremat@redhat.com> | 2015-06-09 10:44:44 +0530 |
---|---|---|
committer | Venky Shankar <vshankar@redhat.com> | 2015-06-12 03:38:02 -0700 |
commit | e58b55ed9b2e802e6c3e908cbbad71c00f6c5b97 (patch) | |
tree | 173c3c7d5849a3e0a6da051ab36d0ecd56a7d5dc /tools/glusterfind/src | |
parent | 6180d36ff30ecbe84c91b66b23734cf4f45249c5 (diff) |
features/changelog: Do htime setxattr without XATTR_REPLACE flag
HTIME_KEY marks the last changelog rolled over. The xattr is
maintained on .glusterfs/changelog/htime/HTIME.TSTAMP file.
On every rollover of the changelog file, the xattr is updated.
It is being updated with XATTR_REPLACE flag as xattr gets
created during changelog enable. But it is once found that
the xattrs on the file is cleared and is not reproduced later
on. This patch protects that case, if it happens by setting
xattr without XATTR_REPLACE flag in failure case.
The reason behind doing this in failure case is not to mask
the actual cause of xattrs getting cleared. This provides
the log message if the original issue still exists but the
consequential effects are fixed.
Also changed the log messages to depict the events happened
during changelog enable.
Change-Id: I699ed09a03667fd823d01d65c9c360fa7bc0e455
BUG: 1230015
Signed-off-by: Kotresh HR <khiremat@redhat.com>
Reviewed-on: http://review.gluster.org/11150
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
Diffstat (limited to 'tools/glusterfind/src')
0 files changed, 0 insertions, 0 deletions