projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
testing: freebsd [travis skip]
[awesomized/libmemcached]
/
test
/
lib
/
Cluster.cpp
diff --git
a/test/lib/Cluster.cpp
b/test/lib/Cluster.cpp
index 4fcdb47bcbc358e94664f4dc3fe07fc19706dbbd..54de9398564e25c5cba32f328fe56299448b7bcd 100644
(file)
--- a/
test/lib/Cluster.cpp
+++ b/
test/lib/Cluster.cpp
@@
-46,11
+46,15
@@
bool Cluster::start() {
return started;
}
return started;
}
-void Cluster::stop() {
+void Cluster::stop(
bool graceful
) {
for (auto &server : cluster) {
server.drain();
for (auto &server : cluster) {
server.drain();
- // no cookies for memcached; TERM is just too slow
- server.signal(SIGKILL);
+ if (graceful) {
+ server.stop();
+ } else {
+ // no cookies for memcached; TERM is just too slow
+ server.signal(SIGKILL);
+ }
}
}
}
}