mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
Only retry transactions which fail from timeout.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
This commit is contained in:
1 parent
31f9bdd799
commit
765866597e
1 file changed
+6
-2
@@ -108,7 +108,9 @@ class xstransact:
|
||||
try:
|
||||
return cls.Read(path, *args)
|
||||
except RuntimeError, ex:
|
||||
pass
|
||||
if ex.args[0] == errno.ETIMEDOUT:
|
||||
pass
|
||||
raise
|
||||
|
||||
SafeRead = classmethod(SafeRead)
|
||||
|
||||
@@ -118,6 +120,8 @@ class xstransact:
|
||||
cls.Write(path, *args, **opts)
|
||||
return
|
||||
except RuntimeError, ex:
|
||||
pass
|
||||
if ex.args[0] == errno.ETIMEDOUT:
|
||||
pass
|
||||
raise
|
||||
|
||||
SafeWrite = classmethod(SafeWrite)
|
||||