[SCM] CTDB repository - branch master updated - ctdb-1.11-64-gb963f5e

Ronnie Sahlberg sahlberg at samba.org
Tue Sep 20 23:47:43 MDT 2011


The branch, master has been updated
       via  b963f5e40b1e73a60363568da88557cad9e58a28 (commit)
      from  3d37be3e2bfb61ede824028aeebaa18ba304faae (commit)

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


- Log -----------------------------------------------------------------
commit b963f5e40b1e73a60363568da88557cad9e58a28
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Wed Sep 21 15:41:28 2011 +1000

    Change the 'This Node' column of the machinereadable output for 'ctdb status -Y' to Y/N instead of 1/0
    
    1/0 is unsuitable since it can be useful to check 'if a column is "1" there is something wrong with that node'

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

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


Changeset truncated at 500 lines:

diff --git a/tools/ctdb.c b/tools/ctdb.c
index fc281e4..876521a 100644
--- a/tools/ctdb.c
+++ b/tools/ctdb.c
@@ -651,7 +651,7 @@ static int control_status(struct ctdb_context *ctdb, int argc, const char **argv
 					talloc_free(ifaces);
 				}
 			}
-			printf(":%d:%s:%d:%d:%d:%d:%d:%d:%d:%d:\n", nodemap->nodes[i].pnn,
+			printf(":%d:%s:%d:%d:%d:%d:%d:%d:%d:%c:\n", nodemap->nodes[i].pnn,
 				ctdb_addr_to_str(&nodemap->nodes[i].addr),
 			       !!(nodemap->nodes[i].flags&NODE_FLAGS_DISCONNECTED),
 			       !!(nodemap->nodes[i].flags&NODE_FLAGS_BANNED),
@@ -660,7 +660,7 @@ static int control_status(struct ctdb_context *ctdb, int argc, const char **argv
 			       !!(nodemap->nodes[i].flags&NODE_FLAGS_STOPPED),
 			       !!(nodemap->nodes[i].flags&NODE_FLAGS_INACTIVE),
 			       partially_online,
-			       (nodemap->nodes[i].pnn == mypnn));
+			       (nodemap->nodes[i].pnn == mypnn)?'Y':'N');
 		}
 		return 0;
 	}


-- 
CTDB repository


More information about the samba-cvs mailing list