summaryrefslogtreecommitdiffstats
path: root/tests/afr.rc
diff options
context:
space:
mode:
authorRavishankar N <ravishankar@redhat.com>2018-10-11 07:22:09 +0530
committerShyamsundar Ranganathan <srangana@redhat.com>2018-10-11 11:00:02 +0000
commit34e8058b7c8e906c889d6d0e155ea63037148eea (patch)
tree5db4c381ea96750b9c22d4b3f9e9e9779e4730fc /tests/afr.rc
parentc7b933bc460bf47a8d4404055bf1a52225a138cb (diff)
afr: fix incorrect reporting of directory split-brain
Backport of https://review.gluster.org/#/c/glusterfs/+/21135/ 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. Change-Id: I09ef821f6887c87d315ae99e6b1de05103cd9383 fixes: bz#1638163 Signed-off-by: Ravishankar N <ravishankar@redhat.com>
Diffstat (limited to 'tests/afr.rc')
-rw-r--r--tests/afr.rc2
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