summaryrefslogtreecommitdiff
path: root/server-tools/instance-manager/commands.cc
diff options
context:
space:
mode:
authorpetr@mysql.com <>2005-02-11 14:21:59 +0300
committerpetr@mysql.com <>2005-02-11 14:21:59 +0300
commit6b50b5b087d83c28058f9adee099bcb761142b7a (patch)
tree5a46c104b5146373b9e754ea5691cfa5ef3d2fcf /server-tools/instance-manager/commands.cc
parent0eddb07ff7bab43de73b87a07e68bb40ab01b3f8 (diff)
downloadmariadb-git-6b50b5b087d83c28058f9adee099bcb761142b7a.tar.gz
Post-review fixes + some bugs fixed + several minor features
Diffstat (limited to 'server-tools/instance-manager/commands.cc')
-rw-r--r--server-tools/instance-manager/commands.cc12
1 files changed, 8 insertions, 4 deletions
diff --git a/server-tools/instance-manager/commands.cc b/server-tools/instance-manager/commands.cc
index 70774115429..3f38f21b008 100644
--- a/server-tools/instance-manager/commands.cc
+++ b/server-tools/instance-manager/commands.cc
@@ -184,7 +184,8 @@ int Show_instance_status::do_command(struct st_net *net,
}
- if (my_net_write(net, send_buff.buffer, (uint) position))
+ if (my_net_write(net, send_buff.buffer, (uint) position) ||
+ send_buff.is_error())
goto err;
}
@@ -270,7 +271,8 @@ int Show_instance_options::do_command(struct st_net *net,
store_to_string(&send_buff,
(char *) instance->options.mysqld_path,
&position);
- if (my_net_write(net, send_buff.buffer, (uint) position))
+ if (my_net_write(net, send_buff.buffer, (uint) position) ||
+ send_buff.is_error())
goto err;
}
@@ -279,7 +281,8 @@ int Show_instance_options::do_command(struct st_net *net,
position= 0;
store_to_string(&send_buff, (char *) "nonguarded", &position);
store_to_string(&send_buff, "", &position);
- if (my_net_write(net, send_buff.buffer, (uint) position))
+ if (my_net_write(net, send_buff.buffer, (uint) position) ||
+ send_buff.is_error())
goto err;
}
@@ -296,7 +299,8 @@ int Show_instance_options::do_command(struct st_net *net,
store_to_string(&send_buff, option_value + 1, &position);
/* join name and the value into the same option again */
*option_value= '=';
- if (my_net_write(net, send_buff.buffer, (uint) position))
+ if (my_net_write(net, send_buff.buffer, (uint) position) ||
+ send_buff.is_error())
goto err;
}
}