From a9cdfa3072f60171a97d9f6af6988b179d45747f Mon Sep 17 00:00:00 2001 From: Venky Shankar Date: Mon, 9 Jun 2014 21:58:29 +0530 Subject: gsyncd / geo-rep: Xsync crawl metadata synchronization Added "metadata" record for directory and file creations during the intial crawl. Change-Id: I811ae26e0144cadf7249cb64541ec354ab83fe66 BUG: 1106604 Signed-off-by: Venky Shankar Reviewed-on: http://review.gluster.org/8018 Reviewed-by: Aravinda VK Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- geo-replication/syncdaemon/master.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'geo-replication') diff --git a/geo-replication/syncdaemon/master.py b/geo-replication/syncdaemon/master.py index 0af21bbe99d..875f2791e0d 100644 --- a/geo-replication/syncdaemon/master.py +++ b/geo-replication/syncdaemon/master.py @@ -1379,6 +1379,7 @@ class GMasterXsyncMixin(GMasterChangelogMixin): self.write_entry_change("E", [gfid, 'MKDIR', str(mo), str( st.st_uid), str(st.st_gid), escape(os.path.join(pargfid, bname))]) + self.write_entry_change("M", [gfid, "SETATTR"]) self.Xcrawl(e, xtr_root) self.stimes.append((e, xte)) elif stat.S_ISLNK(mo): @@ -1398,6 +1399,7 @@ class GMasterXsyncMixin(GMasterChangelogMixin): str(st.st_gid), escape(os.path.join( pargfid, bname))]) + self.write_entry_change("M", [gfid, "SETATTR"]) else: self.write_entry_change( "E", [gfid, 'LINK', escape(os.path.join(pargfid, -- cgit