ia64/xen-unstable

changeset 6730:54af57682431

Only retry transactions which fail from timeout.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Fri Sep 09 17:03:34 2005 +0000 (2005-09-09)
parents 578c19d1ed49
children 1a27091a1e7a
files tools/python/xen/xend/xenstore/xstransact.py
line diff
     1.1 --- a/tools/python/xen/xend/xenstore/xstransact.py	Fri Sep 09 16:08:17 2005 +0000
     1.2 +++ b/tools/python/xen/xend/xenstore/xstransact.py	Fri Sep 09 17:03:34 2005 +0000
     1.3 @@ -108,7 +108,9 @@ class xstransact:
     1.4              try:
     1.5                  return cls.Read(path, *args)
     1.6              except RuntimeError, ex:
     1.7 -                pass
     1.8 +                if ex.args[0] == errno.ETIMEDOUT:
     1.9 +                    pass
    1.10 +                raise
    1.11  
    1.12      SafeRead = classmethod(SafeRead)
    1.13  
    1.14 @@ -118,6 +120,8 @@ class xstransact:
    1.15                  cls.Write(path, *args, **opts)
    1.16                  return
    1.17              except RuntimeError, ex:
    1.18 -                pass
    1.19 +                if ex.args[0] == errno.ETIMEDOUT:
    1.20 +                    pass
    1.21 +                raise
    1.22  
    1.23      SafeWrite = classmethod(SafeWrite)