summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKrutika Dhananjay <kdhananj@redhat.com>2015-10-05 15:30:03 +0530
committerVijay Bellur <vbellur@redhat.com>2015-10-06 04:48:26 -0700
commit8eaa67b98aaa02ee0a389fd28304402687d9cfa8 (patch)
tree17763d25f77b857af5e012a949f1b7c25d83beed
parent0d1be89fb2b2b9ad8bbc270069baf4dd64f8f017 (diff)
features/shard: Use the xattr rsp dict to pick shard xattrs in xattrop cbk
Backport of: http://review.gluster.org/#/c/12300/ The change http://review.gluster.org/#/c/11938/ makes a fix in posix translator which would cause sharding to fail fops post xattrop without this patch. Change-Id: Id86b332a14b190694f5098e94bceb86e5b73e127 BUG: 1268804 Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com> Reviewed-on: http://review.gluster.org/12301 Reviewed-by: Vijay Bellur <vbellur@redhat.com> Tested-by: Vijay Bellur <vbellur@redhat.com>
-rw-r--r--xlators/features/shard/src/shard.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/features/shard/src/shard.c b/xlators/features/shard/src/shard.c
index 289f8e4..aee6ed3 100644
--- a/xlators/features/shard/src/shard.c
+++ b/xlators/features/shard/src/shard.c
@@ -396,7 +396,7 @@ shard_update_file_size_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
goto err;
}
- if (shard_modify_size_and_block_count (&local->postbuf, xdata)) {
+ if (shard_modify_size_and_block_count (&local->postbuf, dict)) {
local->op_ret = -1;
local->op_errno = ENOMEM;
goto err;