From 7dfdab1b9d3bd71747a4fb7c24374d96bdcd6e8f Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Fri, 4 May 2007 15:21:40 +1000 Subject: 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) --- ctdb/tests/ctdb_test.c | 2 +- ctdb/tests/recover.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'ctdb/tests') 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" -- cgit