[SCM] CTDB repository - branch master updated - ctdb-1.0.113-103-g23b059d

Ronnie Sahlberg sahlberg at samba.org
Sun Feb 21 21:36:43 MST 2010


The branch, master has been updated
       via  23b059dcb8074872d7900b225790d4df7da071b6 (commit)
      from  9f484404030211df85a215fd2280568a2ec020fb (commit)

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


- Log -----------------------------------------------------------------
commit 23b059dcb8074872d7900b225790d4df7da071b6
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Mon Feb 22 15:34:26 2010 +1100

    ctdb regsrvids is much more useful for testing if it sleeps once it has registered its srvid.
    Othervise, as soon as it terminates, ctdbd will deregister the id automatically.

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

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


Changeset truncated at 500 lines:

diff --git a/tools/ctdb.c b/tools/ctdb.c
index 406b86a..09c849c 100644
--- a/tools/ctdb.c
+++ b/tools/ctdb.c
@@ -1559,6 +1559,8 @@ static int regsrvid(struct ctdb_context *ctdb, int argc, const char **argv)
 		DEBUG(DEBUG_ERR, ("Unable to register server_id from node %u\n", options.pnn));
 		return ret;
 	}
+	DEBUG(DEBUG_ERR,("Srvid registered. Sleeping for 999 seconds\n"));
+	sleep(999);
 	return -1;
 }
 


-- 
CTDB repository


More information about the samba-cvs mailing list