Update for testig memcached_light
[m6w6/libmemcached] / libtest / server_container.cc
index 244f80e6b4fb7545642132bd36cda7653977a587..6d0c785e7de5f20d5d2d06d549ed7545e5b749ff 100644 (file)
@@ -195,11 +195,20 @@ bool server_startup(server_startup_st& construct, const std::string& server_type
       }
     }
   }
+  else if (server_type.compare("memcached-light") == 0)
+  {
+    if (MEMCACHED_LIGHT_BINARY)
+    {
+      if (HAVE_LIBMEMCACHED)
+      {
+        server= build_memcached_light("localhost", try_port);
+      }
+    }
+  }
 
   if (server == NULL)
   {
-    Error << "Failure occured while creating server: " <<  server_type;
-    return false;
+    fatal_message("Launching of an unknown server was attempted");
   }
 
   /*