summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorshishir gowda <shishirng@gluster.com>2011-06-21 03:22:09 +0000
committerAnand Avati <avati@gluster.com>2011-06-22 08:40:41 -0700
commitf63dabd5d68a0904967705937380fed1eb9c99cf (patch)
tree7f5cbafe3926bf6ec3c43245d964d5458948ae2b
parent1d85e0dc80c19645f924c8fcbbb32c53ef09e701 (diff)
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 <shishirng@gluster.com> Signed-off-by: Anand Avati <avati@gluster.com> BUG: 3066 (aggregate xattrs in stripe lookup) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=3066
-rw-r--r--xlators/cluster/stripe/src/stripe.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/xlators/cluster/stripe/src/stripe.c b/xlators/cluster/stripe/src/stripe.c
index 4da0495e317..0d075e4967e 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;