summaryrefslogtreecommitdiffstats
path: root/tests/volume.rc
diff options
context:
space:
mode:
authorPranith Kumar K <pkarampu@redhat.com>2014-05-05 09:18:35 +0530
committerAnand Avati <avati@redhat.com>2014-05-08 11:25:17 -0700
commit1b042296ddc65f5eab9d6e5f1e30e353413d9bbb (patch)
treebd7e26ecb63976522ad4f9879d893cb0ef53d984 /tests/volume.rc
parent933f60796d69686a153659c7b178dbd1475f9cb6 (diff)
cluster/afr: Remove stale index in self-heal codepath
Change-Id: I635fc0fa955b33590f1c5b4dfec22d591ea8575c BUG: 1032894 Signed-off-by: Pranith Kumar K <pkarampu@redhat.com> Reviewed-on: http://review.gluster.org/6592 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'tests/volume.rc')
-rw-r--r--tests/volume.rc5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/volume.rc b/tests/volume.rc
index 7d2494067e8..301b57b8d42 100644
--- a/tests/volume.rc
+++ b/tests/volume.rc
@@ -359,3 +359,8 @@ function volume_exists() {
return 0
fi
}
+
+function afr_get_index_count {
+ local brick=$1
+ ls $1/.glusterfs/indices/xattrop | grep -v xattrop | wc -l
+}