Skip to content

Commit 1d23c4a

Browse files
committed
change gearmand timeout from -1 to 1000ms
1 parent 6a4610b commit 1d23c4a

File tree

3 files changed

+2
-26
lines changed

3 files changed

+2
-26
lines changed

src/mapper_worker_main.cc

+1-8
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
/*
2-
* mapper_worker_main.cc
3-
*
4-
* Created on: Nov 21, 2012
5-
* Author: alex
6-
*/
7-
81
#include <cerrno>
92
#include <cstdio>
103
#include <cstdlib>
@@ -44,7 +37,7 @@ int main(int args, char *argv[]) {
4437
"Port number use for gearmand connection")("count,c",
4538
boost::program_options::value<uint32_t>(&count)->default_value(0),
4639
"Number of jobs to run before exiting")("timeout,u",
47-
boost::program_options::value<int>(&timeout)->default_value(-1),
40+
boost::program_options::value<int>(&timeout)->default_value(1000),
4841
"Timeout in milliseconds")("path_to_qfs_bin_tools",
4942
boost::program_options::value<string>(&path_to_qfs_bin_tools)->default_value(
5043
"/opt/qc/qfs/client/bin/"),

src/reducer_worker_main.cc

-10
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
/*
2-
============================================================================
3-
Name : reducer_worker.cpp
4-
Author : Alexander Hurd
5-
Version :
6-
Copyright :
7-
Description :
8-
============================================================================
9-
*/
10-
111
#include <cerrno>
122
#include <cstdio>
133
#include <cstdlib>

src/sorter_worker_main.cc

+1-8
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
/*
2-
* sorter_worker_main.cc
3-
*
4-
* Created on: Nov 21, 2012
5-
* Author: alex
6-
*/
7-
81
#include <cerrno>
92
#include <cstdio>
103
#include <cstdlib>
@@ -44,7 +37,7 @@ int main(int args, char *argv[]) {
4437
"Port number use for gearmand connection")("count,c",
4538
boost::program_options::value<uint32_t>(&count)->default_value(0),
4639
"Number of jobs to run before exiting")("timeout,u",
47-
boost::program_options::value<int>(&timeout)->default_value(-1),
40+
boost::program_options::value<int>(&timeout)->default_value(1000),
4841
"Timeout in milliseconds")("path_to_qfs_bin_tools",
4942
boost::program_options::value<string>(&path_to_qfs_bin_tools)->default_value(
5043
"/opt/qc/qfs/client/bin/"),

0 commit comments

Comments
 (0)