summaryrefslogtreecommitdiffstats
path: root/geo-replication
diff options
context:
space:
mode:
Diffstat (limited to 'geo-replication')
-rw-r--r--geo-replication/syncdaemon/resource.py15
1 files changed, 9 insertions, 6 deletions
diff --git a/geo-replication/syncdaemon/resource.py b/geo-replication/syncdaemon/resource.py
index 2fb6b3078d8..e3cf33ffdc5 100644
--- a/geo-replication/syncdaemon/resource.py
+++ b/geo-replication/syncdaemon/resource.py
@@ -468,8 +468,9 @@ class Server(object):
try:
val = Xattr.lgetxattr(path,
- '.'.join([cls.GX_NSPACE, uuid, 'xtime']))
- return struct.unpack('!II', val, 8)
+ '.'.join([cls.GX_NSPACE, uuid, 'xtime']),
+ 8)
+ return struct.unpack('!II', val)
except OSError:
ex = sys.exc_info()[1]
if ex.errno in (ENOENT, ENODATA, ENOTDIR):
@@ -489,8 +490,9 @@ class Server(object):
try:
val = Xattr.lgetxattr(path,
- '.'.join([cls.GX_NSPACE, uuid, 'stime']))
- return struct.unpack('!II', val, 8)
+ '.'.join([cls.GX_NSPACE, uuid, 'stime']),
+ 8)
+ return struct.unpack('!II', val)
except OSError:
ex = sys.exc_info()[1]
if ex.errno in (ENOENT, ENODATA, ENOTDIR):
@@ -510,8 +512,9 @@ class Server(object):
try:
val = Xattr.lgetxattr(path,
- '.'.join([cls.GX_NSPACE, uuid, 'stime']))
- return struct.unpack('!II', val, 8)
+ '.'.join([cls.GX_NSPACE, uuid, 'stime']),
+ 8)
+ return struct.unpack('!II', val)
except OSError:
ex = sys.exc_info()[1]
if ex.errno in (ENOENT, ENODATA, ENOTDIR):