[PATCH] iwhd --auto: increase timeout to allow for longer mongod start-up delay

Pete Zaitcev zaitcev at redhat.com
Tue Feb 28 17:58:34 UTC 2012


On Tue, 28 Feb 2012 16:39:47 +0100
Jim Meyering <jim at meyering.net> wrote:

> With this patch, "make check" now passes on F17 as well as on F16 and on
> RHEL 6.2.

> +++ b/auto.c
>  static const char *const auto_arg_mongod[] = {
>  	"mongod",
> +	MONGOD_NO_JOURNAL
>  	"--port", auto_arg_port,
> @@ -39,6 +40,7 @@ static const char *const auto_arg_mongod[] = {
>  /* The --quiet option in mongod is useless, so redirect instead. */
>  static const char *const auto_arg_mongod_quiet[] = {
>  	"mongod",
> +	MONGOD_NO_JOURNAL
>  	"--port", auto_arg_port,

> +++ b/configure.ac
>  AC_LANG_POP
> 
> +# If mongod supports the --nojournal option, use it.
> +case `exec 2>/dev/null; mongod --help` in
> +  *--nojournal*) MONGOD_NO_JOURNAL='"--nojournal",';;
> +  *) MONGOD_NO_JOURNAL='/* empty */';;
> +esac
> +AC_DEFINE_UNQUOTED([MONGOD_NO_JOURNAL], [$MONGOD_NO_JOURNAL],
> +  [Define to '"--nojournal",' or to a comment;
> + to be used when invoking mongod via iwhd -a.])
> +

I ack this.

-- Pete


More information about the iwhd-devel mailing list