Skip to content

Commit

Permalink
Fixed wrong MI tree in clusterer_list (related to previous commit)
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdan-iancu committed Apr 27, 2016
1 parent 31943a4 commit fa4e7f0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/clusterer/clusterer.c
Expand Up @@ -1230,14 +1230,14 @@ static struct mi_root * clusterer_list(struct mi_root *cmd_tree, void *param)
/* iterate through servers */
for (value = info->value; value; value = value->next) {

val.s = int2str(value->id, &val.len);
val.s = int2str(value->machine_id, &val.len);
node_s = add_mi_node_child(node, MI_DUP_VALUE,
MI_SSTR("DB ID"), val.s, val.len);
MI_SSTR("Server"), val.s, val.len);
if (!node) goto error;

val.s = int2str(value->state, &val.len);
val.s = int2str(value->id, &val.len);
attr = add_mi_attr(node_s, MI_DUP_VALUE,
MI_SSTR("State"), val.s, val.len);
MI_SSTR("DB ID"), val.s, val.len);
if (!attr) goto error;

attr = add_mi_attr(node_s, MI_DUP_VALUE,
Expand Down

0 comments on commit fa4e7f0

Please sign in to comment.