From f63dabd5d68a0904967705937380fed1eb9c99cf Mon Sep 17 00:00:00 2001 From: shishir gowda Date: Tue, 21 Jun 2011 03:22:09 +0000 Subject: Stripe lookup: aggregate xattrs stripe default setxattr works on first child. If the first cbk is not the first child, then we were loosing the xattrs. Signed-off-by: shishir gowda Signed-off-by: Anand Avati BUG: 3066 (aggregate xattrs in stripe lookup) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=3066 --- xlators/cluster/stripe/src/stripe.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'xlators') diff --git a/xlators/cluster/stripe/src/stripe.c b/xlators/cluster/stripe/src/stripe.c index 4da0495e3..0d075e496 100644 --- a/xlators/cluster/stripe/src/stripe.c +++ b/xlators/cluster/stripe/src/stripe.c @@ -254,6 +254,10 @@ stripe_aggregate (dict_t *this, char *key, data_t *value, void *data) } *size = hton64 (ntoh64 (*size) + ntoh64 (*ptr)); + } else { + ret = dict_set (dst, key, value); + if (ret) + gf_log ("stripe", GF_LOG_WARNING, "xattr dict set failed"); } return; -- cgit