[SCM] CTDB repository - branch master updated - ctdb-1.0.81-2-gbbae698

Ronnie Sahlberg sahlberg at samba.org
Mon May 11 04:25:32 GMT 2009


The branch, master has been updated
       via  bbae698656d5da9a4a5b0fbfc3003844f246d54b (commit)
      from  ce6afbdef36e3c386b75709f73ef55efe0bd1987 (commit)

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


- Log -----------------------------------------------------------------
commit bbae698656d5da9a4a5b0fbfc3003844f246d54b
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Mon May 11 14:44:59 2009 +1000

    Add a -Y machinereadable flag to "lvsmaster"

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

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


Changeset truncated at 500 lines:

diff --git a/tools/ctdb.c b/tools/ctdb.c
index 44c8d07..ab631f8 100644
--- a/tools/ctdb.c
+++ b/tools/ctdb.c
@@ -1876,7 +1876,11 @@ static int control_lvsmaster(struct ctdb_context *ctdb, int argc, const char **a
 			}
 		}
 
-		printf("Node %d is LVS master\n", i);
+		if (options.machinereadable){
+			printf("%d\n", i);
+		} else {
+			printf("Node %d is LVS master\n", i);
+		}
 		return 0;
 	}
 


-- 
CTDB repository


More information about the samba-cvs mailing list