diff options
author | Anuradha Talur <atalur@commvault.com> | 2018-11-19 17:57:18 -0800 |
---|---|---|
committer | Atin Mukherjee <amukherj@redhat.com> | 2019-04-10 08:11:56 +0000 |
commit | d837b4518c3148752b2eb4d55d22f22c57aa96c2 (patch) | |
tree | 28600980f44b7dac72e2d76c05c54af18d1c7c84 /tests/volume.rc | |
parent | 22e848f88e2cb9510e82fb4875c182240fff3303 (diff) |
mgmt/glusterd: Make changes related to cloudsync xlator
1) The placement of cloudsync xlator has been changed
to make it shard xlator's child. If cloudsync has to
work with shard in the graph, it needs to be child of shard.
Change-Id: Ib55424fdcb7ce8edae9f19b8a6e3d3ba86c1f0c4
fixes: bz#1642168
Signed-off-by: Anuradha Talur <atalur@commvault.com>
Diffstat (limited to 'tests/volume.rc')
-rw-r--r-- | tests/volume.rc | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/volume.rc b/tests/volume.rc index 1adc5b15c35..620268ccfb9 100644 --- a/tests/volume.rc +++ b/tests/volume.rc @@ -887,3 +887,24 @@ function check_changelog_op { $PYTHON $(dirname $0)/../../utils/changelogparser.py ${clog_path}/CHANGELOG | grep "$op" | wc -l } + +function volgen_check_ancestry { + #Returns Y if ancestor_xl is an ancestor of $child_xl according to the volfile + local volfile="$1" + + local child_xl_type="$2" + local child_xl="$3" + + local ancestor_xl_type="$4" + local ancestor_xl="$5" + + child_linenum=$(awk '/type $child_xl_type\/$child_xl/ {print FNR}' $volfile) + ancestor_linenum=$(awk '/type $ancestor_xl_type\/$ancestor_xl/ {print FNR}' $volfile) + + if [ $child_linenum -lt $ancestor_linenum ]; + then + echo "Y" + else + echo "N" + fi +} |