summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAravinda VK <avishwan@redhat.com>2014-06-05 11:12:22 +0530
committerVenky Shankar <vshankar@redhat.com>2014-10-28 05:46:28 -0700
commit3993728390cc50390a527f5f01d6dcf3e6293110 (patch)
tree0e57f702c87f3bc0d17b52296b830f71e26cde35
parenta7ef6eea4d43afdba9d0453c095e71e6bf22cdb7 (diff)
geo-rep: gid is not set in entry ops
uid is sent in place of gid while CREATE and MKDIR. Change-Id: Icd1072cb9dcbfc1f419a3cdd456f3d02168175fa BUG: 1104954 Signed-off-by: Aravinda VK <avishwan@redhat.com> Reviewed-on: http://review.gluster.org/7984 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Kotresh HR <khiremat@redhat.com> Reviewed-by: Venky Shankar <vshankar@redhat.com> Tested-by: Venky Shankar <vshankar@redhat.com>
-rw-r--r--geo-replication/syncdaemon/resource.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/geo-replication/syncdaemon/resource.py b/geo-replication/syncdaemon/resource.py
index 3a3bd004e8f..1e11b980ad3 100644
--- a/geo-replication/syncdaemon/resource.py
+++ b/geo-replication/syncdaemon/resource.py
@@ -633,10 +633,10 @@ class Server(object):
break
elif op in ['CREATE', 'MKNOD']:
blob = entry_pack_reg(
- gfid, bname, e['mode'], e['uid'], e['uid'])
+ gfid, bname, e['mode'], e['uid'], e['gid'])
elif op == 'MKDIR':
blob = entry_pack_mkdir(
- gfid, bname, e['mode'], e['uid'], e['uid'])
+ gfid, bname, e['mode'], e['uid'], e['gid'])
elif op == 'LINK':
slink = os.path.join(pfx, gfid)
st = lstat(slink)