1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00
samba-mirror/ctdb
Martin Schwenke ce8ac88b96 ctdb-tools-ctdb: Drop disconnected nodes when filtering by capability
Commit ba69742ccd missed the point of
filtering disconnected nodes while limiting the nodemap to those in
the NAT gateway group.  It was really to avoid trying to fetch
capabilities from disconnected nodes.  This should be explicitly done
in filter_nodemap_by_capabilities(), otherwise "ctdb natgwlist" simply
fails when there is a disconnected node.

Note that the alternate solution where filter_nodemap_by_flags() is
called before filter_nodemap_by_capabilities() would not be not
correct.  Filtering on flags first can produce a "healthier" set of
nodes where none of them have the NAT gateway capability.

Also extend stub for ctdb_ctrl_getcapabilities() to fail when trying
to get capabilities from a disconnected node and add a corresponding
test to confirm that "ctdb natgwlist" is no longer broken.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
2014-04-14 03:52:40 +02:00
..
client ctdb-client: Add client code to detach a database 2014-04-14 03:52:39 +02:00
common ctdb-util: Do not use mlockall() on AIX 2014-03-04 01:02:11 +01:00
config ctdb-eventscripts: CTDB_NATGW_STATIC_ROUTES can specify gateways 2014-03-26 04:21:42 +01:00
doc ctdb-doc: Remove commands that have been deleted 2014-04-14 03:52:39 +02:00
ib Remove explicit include of lib/tevent/tevent.h. 2012-04-13 17:28:14 +10:00
include ctdb-client: Add client code to detach a database 2014-04-14 03:52:39 +02:00
lib dlinklist: Fix a typo 2014-04-02 17:11:37 +02:00
packaging ctdb-daemon: Add helper process to execute event scripts 2014-01-16 12:11:37 +11:00
server ctdb-daemon: Add control CTDB_CONTROL_DB_DETACH 2014-04-14 03:52:39 +02:00
tcp ctdb-tcp: Coverity fixes 2013-11-19 17:13:06 +01:00
tests ctdb-tools-ctdb: Drop disconnected nodes when filtering by capability 2014-04-14 03:52:40 +02:00
tools ctdb-tools-ctdb: Drop disconnected nodes when filtering by capability 2014-04-14 03:52:40 +02:00
utils ctdb/pmda: Fix metric identifiers 2014-03-22 00:07:31 +01:00
web web: Add links to new manpages 2013-10-30 15:37:54 +11:00
.bzrignore more code rearrangement 2007-06-07 22:16:48 +10:00
.gitignore git: Ignore generated documentation files 2013-10-22 13:07:13 +11:00
aclocal.m4 initial version 2006-11-18 10:41:20 +11:00
autogen.sh event: Update events to latest Samba version 0.9.8 2010-08-18 09:16:31 +09:30
config.guess ctdb-build: Update to latest upstream config.guess 2013-11-27 18:46:15 +01:00
config.mk minor back-merge from samba4 2007-07-10 18:13:47 +10:00
config.sub build: Update config.guess 2012-12-30 and config.sub to 2013-01-11 2013-01-22 18:03:37 +11:00
configure.ac build: Move the default CTDB socket from /tmp to /var/run/ctdb 2013-10-25 12:06:07 +11:00
configure.rpm fixed permissions on configure.rpm 2008-04-22 16:48:25 +02:00
COPYING add a licence file 2009-02-07 08:10:34 +11:00
ctdb.pc.in (This used to be ctdb commit b0718551f55d5da9be0e6aba233f57c1ff8509be) 2009-04-08 09:14:20 +10:00
install-sh initial version 2006-11-18 10:41:20 +11:00
Makefile.in ctdb-build: AIX does not have working C99 vsnprintf, requires libreplace 2014-03-04 01:02:11 +01:00
NEWS ctdb: Update NEWS 2013-11-27 18:46:17 +01:00
README doc: README - add information about CTDB, license and website 2012-10-22 17:39:49 +11:00
README.Coding Add a code-style document. 2010-07-30 16:37:22 +10:00

This is the release version of CTDB, a clustered implementation of TDB
database used by Samba and other projects to store temporary data.

This software is freely distributable under the GNU public license,
a copy of which you should have received with this software (in a file
called COPYING).

For documentation on CTDB, please visit CTDB website http://ctdb.samba.org.