From a7525c507eb682d317dafaa7d06ba59b2c50048d Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Fri, 13 Apr 2018 00:16:22 +0530 Subject: cluster/afr: Make sure latency-arg is passed to afr xlator_notify doesn't pass the extra arguments that come in the input function, so XLATOR_NOTIFY macro should be used instead to pass the extra arguments to the function. BUG: 1567881 fixes bz#1567881 Change-Id: Ic15b6c446638cbacf3149693147a754219037c47 Signed-off-by: Pranith Kumar K --- xlators/cluster/afr/src/afr-common.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'xlators/cluster/afr/src/afr-common.c') diff --git a/xlators/cluster/afr/src/afr-common.c b/xlators/cluster/afr/src/afr-common.c index caea2d35908..21d0fee141f 100644 --- a/xlators/cluster/afr/src/afr-common.c +++ b/xlators/cluster/afr/src/afr-common.c @@ -4643,6 +4643,8 @@ afr_priv_dump (xlator_t *this) gf_proc_dump_write(key, "%s", priv->pending_key[i]); sprintf (key, "pending_reads[%d]", i); gf_proc_dump_write(key, "%"PRId64, GF_ATOMIC_GET(priv->pending_reads[i])); + sprintf (key, "child_latency[%d]", i); + gf_proc_dump_write(key, "%"PRId64, priv->child_latency[i]); } gf_proc_dump_write("data_self_heal", "%s", priv->data_self_heal); gf_proc_dump_write("metadata_self_heal", "%d", priv->metadata_self_heal); -- cgit