summaryrefslogtreecommitdiffstats
path: root/tests/volume.rc
diff options
context:
space:
mode:
authorKotresh HR <khiremat@redhat.com>2018-05-28 03:05:26 -0400
committerKotresh HR <khiremat@redhat.com>2018-06-24 11:47:59 -0400
commitf9f1d26f93d10c41c40f13ccf9b751acb03f43bd (patch)
tree235c2e7a55a220a0fe6d6f5135f673d8765bf504 /tests/volume.rc
parent69b8ade6168d1b5a96323e3b656273375d2aff7b (diff)
cluster/dht: Fix rename journal in changelog
With patch [1], renames are journalled only on cached subvolume. The dht sends the special key on the cached subvolume so that the changelog journals the rename. With single distribute sub-volume, the key is not being set. This patch fixes the same. [1] https://review.gluster.org/10410 fixes: bz#1583018 Change-Id: Ic2e35b40535916fa506a714f257ba325e22d0961 Signed-off-by: Kotresh HR <khiremat@redhat.com>
Diffstat (limited to 'tests/volume.rc')
-rw-r--r--tests/volume.rc7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/volume.rc b/tests/volume.rc
index 492b08a4d9d..ba0fac7bfc9 100644
--- a/tests/volume.rc
+++ b/tests/volume.rc
@@ -869,3 +869,10 @@ function get_mount_lru_size_value {
rm -f $statedump
echo $val
}
+
+function check_changelog_op {
+ local clog_path=$1
+ local op=$2
+
+ $PYTHON $(dirname $0)/../../utils/changelogparser.py ${clog_path}/CHANGELOG | grep $op | wc -l
+}