summaryrefslogtreecommitdiffstats
path: root/xlators/features
diff options
context:
space:
mode:
authorCsaba Henk <csaba@gluster.com>2011-03-10 00:41:29 +0000
committerVijay Bellur <vijay@dev.gluster.com>2011-03-10 07:39:42 -0800
commit6cfb0fe84547db1ce8c21f0710cd0c74e88607c0 (patch)
tree096d2b5ec4e5aa86c0a1b54b68aefbc87779dc6a /xlators/features
parent8717ef57a7b2554fe35da27f3cfd775083538313 (diff)
Revert "syncdaemon: Syncdaemon should not crash on ENOENT while performing setxattr()"
This reverts commit d6407c59a4fd262749edd11ecb457b1e5be7a77a. Signed-off-by: Kaushik BV <kaushikbv@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 2342 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2342
Diffstat (limited to 'xlators/features')
-rw-r--r--xlators/features/marker/utils/syncdaemon/resource.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/xlators/features/marker/utils/syncdaemon/resource.py b/xlators/features/marker/utils/syncdaemon/resource.py
index d1a51ecb06f..55c6e4dd78b 100644
--- a/xlators/features/marker/utils/syncdaemon/resource.py
+++ b/xlators/features/marker/utils/syncdaemon/resource.py
@@ -157,12 +157,7 @@ class Server(object):
@classmethod
def set_xtime(cls, path, uuid, mark):
- try:
- Xattr.lsetxattr(path, '.'.join([cls.GX_NSPACE, uuid, 'xtime']), struct.pack('!II', *mark))
- except OSError:
- ex = sys.exc_info()[1]
- if ex.errno == ENOENT:
- logging.error ("File for which the setxattr to be done is not present")
+ Xattr.lsetxattr(path, '.'.join([cls.GX_NSPACE, uuid, 'xtime']), struct.pack('!II', *mark))
@staticmethod
def setattr(path, adct):