From 3fc7d08c1d5dd9ac9079ee60ea734342eafb42d0 Mon Sep 17 00:00:00 2001 From: Sanju Rakonde Date: Fri, 26 Apr 2019 22:28:53 +0530 Subject: glusterd: define dumpops in the xlator_api of glusterd Problem: statedump is not capturing information related to glusterd Solution: statdump is not capturing glusterd info because trav->dumpops is null in gf_proc_dump_single_xlator_info () where trav is glusterd xlator object. trav->dumpops is null because we missed to define dumpops in xlator_api of glusterd. defining dumpops in xlator_api of glusterd fixes the issue. fixes: bz#1703759 Change-Id: If85429ecb1ef580aced8d5b88d09fc15258bfc4c Signed-off-by: Sanju Rakonde (cherry picked from commit 5d866c13efdcdeddf184f012aa88a652e90ff22e) --- xlators/mgmt/glusterd/src/glusterd.c | 1 + 1 file changed, 1 insertion(+) (limited to 'xlators/mgmt/glusterd') diff --git a/xlators/mgmt/glusterd/src/glusterd.c b/xlators/mgmt/glusterd/src/glusterd.c index ff5af42079d..1d2cf453e7b 100644 --- a/xlators/mgmt/glusterd/src/glusterd.c +++ b/xlators/mgmt/glusterd/src/glusterd.c @@ -2233,6 +2233,7 @@ xlator_api_t xlator_api = { .fini = fini, .mem_acct_init = mem_acct_init, .op_version = {1}, /* Present from the initial version */ + .dumpops = &dumpops, .fops = &fops, .cbks = &cbks, .options = options, -- cgit