From f9f1d26f93d10c41c40f13ccf9b751acb03f43bd Mon Sep 17 00:00:00 2001 From: Kotresh HR Date: Mon, 28 May 2018 03:05:26 -0400 Subject: 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 --- tests/volume.rc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests/volume.rc') 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 +} -- cgit