|
@@ -57,7 +57,7 @@ class Memcached : public libtest::Server
|
|
|
|
|
|
public:
|
|
|
Memcached(const std::string& host_arg, const in_port_t port_arg, const bool is_socket_arg, const std::string& username_arg, const std::string& password_arg) :
|
|
|
- libtest::Server(host_arg, port_arg, is_socket_arg),
|
|
|
+ libtest::Server(host_arg, port_arg, is_socket_arg, MEMCACHED_BINARY, false),
|
|
|
_username(username_arg),
|
|
|
_password(password_arg)
|
|
|
{ }
|
|
@@ -228,8 +228,8 @@ class MemcachedLight : public libtest::Server
|
|
|
{
|
|
|
|
|
|
public:
|
|
|
- MemcachedLight(const std::string& host_arg, const in_port_t port_arg):
|
|
|
- libtest::Server(host_arg, port_arg)
|
|
|
+ MemcachedLight(const std::string& host_arg, const in_port_t port_arg) :
|
|
|
+ libtest::Server(host_arg, port_arg, MEMCACHED_LIGHT_BINARY, true)
|
|
|
{
|
|
|
set_pid_file();
|
|
|
}
|
|
@@ -402,9 +402,9 @@ public:
|
|
|
bool ping()
|
|
|
{
|
|
|
// Memcached is slow to start, so we need to do this
|
|
|
- if (not pid_file().empty())
|
|
|
+ if (pid_file().empty() == false)
|
|
|
{
|
|
|
- if (not wait_for_pidfile())
|
|
|
+ if (wait_for_pidfile() == false)
|
|
|
{
|
|
|
Error << "Pidfile was not found:" << pid_file();
|
|
|
return -1;
|
|
@@ -423,7 +423,7 @@ public:
|
|
|
ret= libmemcached_util_ping2(hostname().c_str(), port(), username().c_str(), password().c_str(), &rc);
|
|
|
}
|
|
|
|
|
|
- if (memcached_failed(rc) or not ret)
|
|
|
+ if (memcached_failed(rc) or ret == false)
|
|
|
{
|
|
|
Error << "libmemcached_util_ping2(" << hostname() << ", " << port() << ", " << username() << ", " << password() << ") error: " << memcached_strerror(NULL, rc);
|
|
|
}
|