From 6cfb0fe84547db1ce8c21f0710cd0c74e88607c0 Mon Sep 17 00:00:00 2001 From: Csaba Henk Date: Thu, 10 Mar 2011 00:41:29 +0000 Subject: Revert "syncdaemon: Syncdaemon should not crash on ENOENT while performing setxattr()" This reverts commit d6407c59a4fd262749edd11ecb457b1e5be7a77a. Signed-off-by: Kaushik BV Signed-off-by: Vijay Bellur BUG: 2342 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2342 --- xlators/features/marker/utils/syncdaemon/resource.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'xlators/features/marker') 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): -- cgit