[SCM] CTDB repository - branch master updated - ctdb-1.0.65-26-gc404d57

Ronnie Sahlberg sahlberg at samba.org
Wed Dec 10 00:31:17 GMT 2008


The branch, master has been updated
       via  c404d57afb2adda039e676877838927d3073df11 (commit)
      from  993f626e603b9bbc02942bb55096d63b9a4f456b (commit)

http://gitweb.samba.org/?p=sahlberg/ctdb.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit c404d57afb2adda039e676877838927d3073df11
Author: root <root at test1n1.VSOFS1.COM>
Date:   Wed Dec 10 12:01:19 2008 +1100

    add a CTDB_TIMEOUT variable for the ctdb tool.
    If set this specified the maximum runtime for the ctdb tool before it will terminate with status == 20
    Just like the -T ...  option would.

-----------------------------------------------------------------------

Summary of changes:
 tools/ctdb.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/tools/ctdb.c b/tools/ctdb.c
index 1f0c331..a005001 100644
--- a/tools/ctdb.c
+++ b/tools/ctdb.c
@@ -2702,6 +2702,13 @@ int main(int argc, const char *argv[])
 		usage();
 	}
 
+	if (options.maxruntime == 0) {
+		const char *ctdb_timeout;
+		ctdb_timeout = getenv("CTDB_TIMEOUT");
+		if (ctdb_timeout != NULL) {
+			options.maxruntime = strtoul(ctdb_timeout, NULL, 0);
+		}
+	}
 	if (options.maxruntime != 0) {
 		signal(SIGALRM, ctdb_alarm);
 		alarm(options.maxruntime);


-- 
CTDB repository


More information about the samba-cvs mailing list