diff options
author | Csaba Henk <csaba@gluster.com> | 2011-03-10 00:42:33 +0000 |
---|---|---|
committer | Vijay Bellur <vijay@dev.gluster.com> | 2011-03-10 07:39:46 -0800 |
commit | 19e65beb16d2dc337d144e25337561ff6e82826a (patch) | |
tree | a0c4323fd9f3159a0054f2739119d78bf5222367 /xlators/features/marker/utils/syncdaemon/resource.py | |
parent | 6cfb0fe84547db1ce8c21f0710cd0c74e88607c0 (diff) |
syncademon: fortify handling of failed entries queries
Signed-off-by: Kaushik BV <kaushikbv@gluster.com>
Signed-off-by: Vijay Bellur <vijay@dev.gluster.com>
BUG: 1570 (geosync related changes)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1570
Diffstat (limited to 'xlators/features/marker/utils/syncdaemon/resource.py')
-rw-r--r-- | xlators/features/marker/utils/syncdaemon/resource.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/xlators/features/marker/utils/syncdaemon/resource.py b/xlators/features/marker/utils/syncdaemon/resource.py index 55c6e4dd78b..dc3279d5290 100644 --- a/xlators/features/marker/utils/syncdaemon/resource.py +++ b/xlators/features/marker/utils/syncdaemon/resource.py @@ -93,14 +93,7 @@ class Server(object): @staticmethod def entries(path): - try: - return os.listdir(path) - except OSError: - ex = sys.exc_info()[1] - if ex.errno == ENOTDIR: - return [] - else: - raise + return os.listdir(path) @classmethod def purge(cls, path, entries=None): |