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 --- glusterfsd/src/glusterfsd-mgmt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'glusterfsd/src') diff --git a/glusterfsd/src/glusterfsd-mgmt.c b/glusterfsd/src/glusterfsd-mgmt.c index d2b39494e51..43f7f6cf043 100644 --- a/glusterfsd/src/glusterfsd-mgmt.c +++ b/glusterfsd/src/glusterfsd-mgmt.c @@ -770,7 +770,7 @@ glusterfs_handle_translator_op (rpcsvc_request_t *req) snprintf (key, sizeof (key), "xl-%d", i); ret = dict_get_str (input, key, &xname); xlator = xlator_search_by_name (any, xname); - XLATOR_NOTIFY (xlator, GF_EVENT_TRANSLATOR_OP, input, output); + XLATOR_NOTIFY (ret, xlator, GF_EVENT_TRANSLATOR_OP, input, output); /* If notify fails for an xlator we need to capture it but * continue with the loop. */ if (ret) -- cgit