diff options
author | Jeff Darcy <jdarcy@redhat.com> | 2016-07-26 08:49:36 -0400 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2016-07-29 12:35:36 -0700 |
commit | 9206f5b770bbfc2cf1697f10c1e650cae35272f1 (patch) | |
tree | 32ea9ef6b6cf47fe0d4e90ec4dd8b969b8a715f3 /glusterfsd | |
parent | 138bea7ea65987ca23f73c1f0c4f8868fd38cdff (diff) |
io-stats: fix translator names
Change-Id: Icf5afaee8b7c704aecab7f8a8a1df9f1bc9288ce
BUG: 1360401
Signed-off-by: Jeff Darcy <jdarcy@redhat.com>
Reviewed-on: http://review.gluster.org/15016
Smoke: Gluster Build System <jenkins@build.gluster.org>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'glusterfsd')
-rw-r--r-- | glusterfsd/src/glusterfsd-mgmt.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/glusterfsd/src/glusterfsd-mgmt.c b/glusterfsd/src/glusterfsd-mgmt.c index d5dc5607cd8..51680e68b67 100644 --- a/glusterfsd/src/glusterfsd-mgmt.c +++ b/glusterfsd/src/glusterfsd-mgmt.c @@ -341,6 +341,15 @@ cont: goto out; } + /* + * Searching by name will only get us to the decompounder translator, + * but we really want io-stats. Since we know the exact relationship + * between these two, it's easy to get from one to the other. + * + * TBD: should this even be notify, or something else? + */ + xlator = FIRST_CHILD(xlator); + output = dict_new (); ret = xlator->notify (xlator, GF_EVENT_TRANSLATOR_INFO, dict, output); |