diff options
author | Ronnie Sahlberg <sahlberg@ronnie> | 2007-05-04 15:21:40 +1000 |
---|---|---|
committer | Ronnie Sahlberg <sahlberg@ronnie> | 2007-05-04 15:21:40 +1000 |
commit | 7dfdab1b9d3bd71747a4fb7c24374d96bdcd6e8f (patch) | |
tree | ce0f1dc557d54e48778979a2ebac15db3ded0472 /ctdb/tests | |
parent | b3c8d6ea7ab27075cf82d2668f995f19a95f2492 (diff) | |
download | samba-7dfdab1b9d3bd71747a4fb7c24374d96bdcd6e8f.tar.gz samba-7dfdab1b9d3bd71747a4fb7c24374d96bdcd6e8f.tar.xz samba-7dfdab1b9d3bd71747a4fb7c24374d96bdcd6e8f.zip |
recovery daemon
this program is a client to the local ctdb daemon
every second it pulls all vnnmap and nodemaps from all nodes that are
available and checks if a recovery is required
a recovery is required if :
* all nodes do NOT have an identical vnnmap and generation
* all nodes do NOT have an identical nodemap
* there are active nodes that are NOT in the nodemap
* there are nodes in the nodemap that are NOT active
During recovery, the recovery tool will also make sure that all nodes
know about and have created all databases.
(This used to be ctdb commit 2f2650467bac7e8954de7c17cb34f46b0bdbcd26)
Diffstat (limited to 'ctdb/tests')
-rw-r--r-- | ctdb/tests/ctdb_test.c | 2 | ||||
-rwxr-xr-x | ctdb/tests/recover.sh | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/ctdb/tests/ctdb_test.c b/ctdb/tests/ctdb_test.c index 2e76536804..d00f619f57 100644 --- a/ctdb/tests/ctdb_test.c +++ b/ctdb/tests/ctdb_test.c @@ -138,7 +138,7 @@ int main(int argc, const char *argv[]) ctdb_connect_wait(ctdb); /* find the full path to the database file */ - ctdb_ctrl_getdbpath(ctdb, ctdb_db->db_id, ctdb_db, &path); + ctdb_ctrl_getdbpath(ctdb, timeval_current_ofs(1, 0), CTDB_CURRENT_NODE, ctdb_db->db_id, ctdb_db, &path); printf("path to database:[%s]\n",path); ZERO_STRUCT(call); diff --git a/ctdb/tests/recover.sh b/ctdb/tests/recover.sh index 79fe70f2a4..9ed48c1ed2 100755 --- a/ctdb/tests/recover.sh +++ b/ctdb/tests/recover.sh @@ -67,6 +67,8 @@ bin/ctdb_control --socket=/tmp/ctdb.socket getdbmap 0 | egrep "^dbid:" | sed -e done done +exit + echo echo echo "killing off node #0" |