From 717d2db0c0df5844cbc7ce99c8ec7457f24d8e0c Mon Sep 17 00:00:00 2001 From: Venky Shankar Date: Wed, 28 Aug 2013 13:58:16 +0530 Subject: 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 Reviewed-by: Amar Tumballi Tested-by: Amar Tumballi Reviewed-on: http://review.gluster.org/5760 Tested-by: Gluster Build System Reviewed-by: Avra Sengupta Tested-by: Avra Sengupta Reviewed-by: Anand Avati --- geo-replication/syncdaemon/resource.py | 1 + 1 file changed, 1 insertion(+) diff --git a/geo-replication/syncdaemon/resource.py b/geo-replication/syncdaemon/resource.py index c7755a41..968cd402 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]) -- cgit