summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVenky Shankar <vshankar@redhat.com>2013-08-28 13:58:16 +0530
committerAnand Avati <avati@redhat.com>2013-09-04 20:55:33 -0700
commit717d2db0c0df5844cbc7ce99c8ec7457f24d8e0c (patch)
treec33db16c10e7e2f75abbc6ba1b97d7f4be17853d
parenteebd4e14853b1660ccf520f4ee34729d2b118878 (diff)
gsyncd / geo-rep: Fix "regular file" overloading link()
... missing entry2pb() call before going ahead with create. Change-Id: I48de4df3f0ea6c789c9eeb10cd332ab461f3c868 BUG: 1003805 Signed-off-by: Venky Shankar <vshankar@redhat.com> Reviewed-by: Amar Tumballi <amarts@redhat.com> Tested-by: Amar Tumballi <amarts@redhat.com> Reviewed-on: http://review.gluster.org/5760 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Avra Sengupta <asengupt@redhat.com> Tested-by: Avra Sengupta <asengupt@redhat.com> Reviewed-by: Anand Avati <avati@redhat.com>
-rw-r--r--geo-replication/syncdaemon/resource.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/geo-replication/syncdaemon/resource.py b/geo-replication/syncdaemon/resource.py
index c7755a419a5..968cd402914 100644
--- a/geo-replication/syncdaemon/resource.py
+++ b/geo-replication/syncdaemon/resource.py
@@ -517,6 +517,7 @@ class Server(object):
slink = os.path.join(pfx, gfid)
st = lstat(slink)
if isinstance(st, int):
+ (pg, bname) = entry2pb(entry)
blob = entry_pack_reg(gfid, bname, e['stat'])
else:
errno_wrap(os.link, [slink, entry], [ENOENT, EEXIST])