projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Refactor out portion of Item
[m6w6/libmemcached]
/
libtest
/
blobslap_worker.cc
diff --git
a/libtest/blobslap_worker.cc
b/libtest/blobslap_worker.cc
index d86840580415c773be85fb433b9a30b54b1e5fc9..f341962061da1a4a17855bc4baaa2ae3856d481a 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>
@@
-48,7
+49,7
@@
class BlobslapWorker : public Server
private:
public:
BlobslapWorker(in_port_t port_arg) :
private:
public:
BlobslapWorker(in_port_t port_arg) :
- Server("localhost", port_arg)
+ Server("localhost", port_arg
, "benchmark/blobslap_worker", true
)
{
set_pid_file();
}
{
set_pid_file();
}
@@
-117,17
+118,7
@@
public:
return "blobslap_worker";
};
return "blobslap_worker";
};
- const char *executable()
- {
- return "benchmark/blobslap_worker";
- }
-
- const char *daemon_file_option()
- {
- return "--daemon";
- }
-
- void has_port_option() const
+ bool has_port_option() const
{
return true;
}
{
return true;
}
@@
-142,17
+133,17
@@
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++)
{
add_option(argv[x]);
}
{
add_option(argv[x]);
}