testing: UDP test
[awesomized/libmemcached] / test / lib / Cluster.cpp
index a4f8a3ae3c150fa4bbdcd3c40df313680941e53f..e1375bfde90ed50c65fcb52a3f0cff54c3be35fa 100644 (file)
@@ -8,7 +8,10 @@ Cluster::Cluster(Server serv, uint16_t cnt)
 , proto{move(serv)}
 {
   if (count < 4) {
-      count = 4;
+      count = stoi(getenv_else("MEMCACHED_CLUSTER", "4"));
+  }
+  if (!count) {
+    count = 1;
   }
   reset();
 }