diff options
author | Ravishankar N <ravishankar@redhat.com> | 2018-09-20 10:14:26 +0530 |
---|---|---|
committer | Shyamsundar Ranganathan <srangana@redhat.com> | 2018-09-21 16:35:26 +0000 |
commit | 9d8f5a34c1ff4ae512f80fe9651508ae201c273e (patch) | |
tree | 32c54faf293bc707280820a11c8bd8c7cbfe5a9f /tests/afr.rc | |
parent | d901308a06c38fa53a3b07ed1641522a3248378d (diff) |
afr: fix incorrect reporting of directory split-brain
Problem:
When a directory has dirty xattrs due to failed post-ops or when
replace/reset brick is performed, AFR does a conservative merge as
expected, but heal-info reports it as split-brain because there are no
clear sources.
Fix:
Modify pending flag to contain information about pending heals and
split-brains. For directories, if spit-brain flag is not set,just show
them as needing heal and not being in split-brain.
Fixes: bz#1626994
Change-Id: I09ef821f6887c87d315ae99e6b1de05103cd9383
Signed-off-by: Ravishankar N <ravishankar@redhat.com>
Diffstat (limited to 'tests/afr.rc')
-rw-r--r-- | tests/afr.rc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/afr.rc b/tests/afr.rc index f253e77561e..35f352df78f 100644 --- a/tests/afr.rc +++ b/tests/afr.rc @@ -2,7 +2,7 @@ function create_brick_xattrop_entry { local xattrop_dir=$(afr_get_index_path $1) - local base_entry=`ls $xattrop_dir` + local base_entry=`ls $xattrop_dir|grep xattrop` local gfid_str local params=`echo "$@" | cut -d' ' -f2-` echo $params |