diff options
author | Brian Foster <bfoster@redhat.com> | 2012-11-01 09:33:53 -0400 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2012-11-29 09:34:14 -0800 |
commit | b90b2c17b6b678e5aa1440a62b7588f8b7c52947 (patch) | |
tree | d8cd13c379bb819a189a41baff2d2935ac0136e1 /extras/init.d | |
parent | 0314f16ec59d8c22597c8c14b53a473b736b8b1f (diff) |
afr: send unique dict_t instances to replicas in self-heal fxattrop
afr_sh_data_fxattrop() currently allocates and sends a single xattr
dict_t instance to each replica. The callback codepath references
the returned object in the self-heal in-memory state for the
particular replica. If storage/posix is in the same address-space
(i.e., running a single glusterfs client with a fuse->afr->posix
graph), the same object is modified and returned for each child,
causing corrupted in-memory state and afr xattrs.
Allocate and send independent xattr dict_t's for each replica. This
allows self-heal to work correctly in a single address-space
graph.
BUG: 868478
Change-Id: I42832e85b5d1abb6098c28944c717e129300109e
Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-on: http://review.gluster.org/4149
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'extras/init.d')
0 files changed, 0 insertions, 0 deletions