projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
| inline |
side by side
Merge branch 'catch' into v1.x
[m6w6/libmemcached]
/
test
/
lib
/
Cluster.cpp
diff --git
a/test/lib/Cluster.cpp
b/test/lib/Cluster.cpp
index c3c625cf04eb225069a08d4b5f732ea68132eade..e1375bfde90ed50c65fcb52a3f0cff54c3be35fa 100644
(file)
--- a/
test/lib/Cluster.cpp
+++ b/
test/lib/Cluster.cpp
@@
-7,8
+7,11
@@
Cluster::Cluster(Server serv, uint16_t cnt)
: count{cnt}
, proto{move(serv)}
{
- if (!cnt) {
- count = thread::hardware_concurrency()/2 ?: 4;
+ if (count < 4) {
+ count = stoi(getenv_else("MEMCACHED_CLUSTER", "4"));
+ }
+ if (!count) {
+ count = 1;
}
reset();
}