projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Fix header reference in libhashkit.
[awesomized/libmemcached]
/
libtest
/
gearmand.cc
diff --git
a/libtest/gearmand.cc
b/libtest/gearmand.cc
index 8106bec4b0a971f2b3529d5081497c1245b21c8d..66ab7bdcfe002d06122c47f470f2b025d52c7634 100644
(file)
--- a/
libtest/gearmand.cc
+++ b/
libtest/gearmand.cc
@@
-34,7
+34,7
@@
*
*/
*
*/
-#include "
mem_config
.h"
+#include "
libtest/yatlcon
.h"
#include <libtest/common.h>
#include <libtest/gearmand.h>
#include <libtest/common.h>
#include <libtest/gearmand.h>
@@
-71,6
+71,8
@@
public:
bool ping()
{
bool ping()
{
+ reset_error();
+
if (out_of_ban_killed())
{
return false;
if (out_of_ban_killed())
{
return false;
@@
-79,7
+81,14
@@
public:
SimpleClient client(_hostname, _port);
std::string response;
SimpleClient client(_hostname, _port);
std::string response;
- return client.send_message("version", response);
+ bool ret= client.send_message("version", response);
+
+ if (client.is_error())
+ {
+ error(client.error());
+ }
+
+ return ret;
}
const char *name()
}
const char *name()