summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorCsaba Henk <csaba@gluster.com>2011-02-07 01:32:56 +0000
committerAnand V. Avati <avati@dev.gluster.com>2011-02-07 00:59:14 -0800
commitd376253d1e91b9fc29f6a23253021647e139c2c1 (patch)
treedb245b19c07229a9fb348451b95f2eb5090541b5 /xlators
parent4b96f79fa19191344ddeeafd40df8b6d18ef7cc9 (diff)
syncdaemon: fix broken symlink handling in "purge" call
Signed-off-by: Csaba Henk <csaba@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 2340 ([glusterfs-3.1.2geosyncqa4]: crash in gsyncd script while posix compliance test was running) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2340
Diffstat (limited to 'xlators')
-rw-r--r--xlators/features/marker/utils/syncdaemon/resource.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/features/marker/utils/syncdaemon/resource.py b/xlators/features/marker/utils/syncdaemon/resource.py
index 6529155a092..f484d1de5c1 100644
--- a/xlators/features/marker/utils/syncdaemon/resource.py
+++ b/xlators/features/marker/utils/syncdaemon/resource.py
@@ -10,7 +10,7 @@ import tempfile
import threading
from ctypes import *
from ctypes.util import find_library
-from errno import EEXIST, ENOENT, ENODATA, ENOTDIR
+from errno import EEXIST, ENOENT, ENODATA, ENOTDIR, ELOOP
from gconf import gconf
import repce
@@ -107,7 +107,7 @@ class Server(object):
entries = os.listdir(path)
except OSError:
ex = sys.exc_info()[1]
- if ex.errno in (ENOTDIR, ENOENT):
+ if ex.errno in (ENOTDIR, ENOENT, ELOOP):
try:
os.unlink(path)
return