projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Update of libtest
[awesomized/libmemcached]
/
libtest
/
blobslap_worker.cc
diff --git
a/libtest/blobslap_worker.cc
b/libtest/blobslap_worker.cc
index 7c7975eda59411d6b55d39b49754f927eb63c8eb..caddbdd764cc5d9944e30e94343a4ff5fade480f 100644
(file)
--- a/
libtest/blobslap_worker.cc
+++ b/
libtest/blobslap_worker.cc
@@
-20,6
+20,7
@@
*/
*/
+#include <config.h>
#include <libtest/common.h>
#include <libtest/blobslap_worker.h>
#include <libtest/common.h>
#include <libtest/blobslap_worker.h>
@@
-119,12
+120,7
@@
public:
const char *executable()
{
const char *executable()
{
- return GEARMAND_BLOBSLAP_WORKER;
- }
-
- const char *pid_file_option()
- {
- return "--pid-file=";
+ return "benchmark/blobslap_worker";
}
const char *daemon_file_option()
}
const char *daemon_file_option()
@@
-132,14
+128,14
@@
public:
return "--daemon";
}
return "--daemon";
}
- const char *log_file_option()
+ bool has_port_option() const
{
{
- return
"--log-file="
;
+ return
true
;
}
}
- const char *port_option()
+ bool has_log_file_option() const
{
{
- return
"--port="
;
+ return
true
;
}
bool is_libtool()
}
bool is_libtool()
@@
-147,23
+143,21
@@
public:
return true;
}
return true;
}
- bool build(
in
t argc, const char *argv[]);
+ bool build(
size_
t argc, const char *argv[]);
};
#include <sstream>
};
#include <sstream>
-bool BlobslapWorker::build(
in
t argc, const char *argv[])
+bool BlobslapWorker::build(
size_
t argc, const char *argv[])
{
std::stringstream arg_buffer;
{
std::stringstream arg_buffer;
- for (
int x= 1
; x < argc ; x++)
+ for (
size_t x= 0
; x < argc ; x++)
{
{
- a
rg_buffer << " " << argv[x] << " "
;
+ a
dd_option(argv[x])
;
}
}
- set_extra_args(arg_buffer.str());
-
return true;
}
return true;
}