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 /xlators/mgmt/glusterd | |
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 'xlators/mgmt/glusterd')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-volgen.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-volgen.c b/xlators/mgmt/glusterd/src/glusterd-volgen.c index 9eefd2a8491..699137d8f9e 100644 --- a/xlators/mgmt/glusterd/src/glusterd-volgen.c +++ b/xlators/mgmt/glusterd/src/glusterd-volgen.c @@ -1555,7 +1555,8 @@ brick_graph_add_decompounder (volgen_graph_t *graph, glusterd_volinfo_t *volinfo conf = this->private; GF_VALIDATE_OR_GOTO (this->name, conf, out); - xl = volgen_graph_add (graph, "performance/decompounder", volinfo->volname); + xl = volgen_graph_add_as (graph, "performance/decompounder", + brickinfo->path); if (xl) ret = 0; out: @@ -2170,10 +2171,14 @@ brick_graph_add_io_stats (volgen_graph_t *graph, glusterd_volinfo_t *volinfo, if (!graph || !volinfo || !set_dict || !brickinfo) goto out; - xl = volgen_graph_add_as (graph, "debug/io-stats", brickinfo->path); + xl = volgen_graph_add (graph, "debug/io-stats", volinfo->volname); if (!xl) goto out; + ret = xlator_set_option (xl, "unique-id", brickinfo->path); + if (ret) + goto out; + ret = 0; out: return ret; |