mirror of
https://github.com/samba-team/samba.git
synced 2025-03-22 02:50:28 +03:00
specify which node to perform recovery to when using the recovery
control (This used to be ctdb commit c67f8a1783ce6f5af9940d2e22847ddcd939763d)
This commit is contained in:
parent
88e3ca3b2e
commit
92f5daf252
@ -49,7 +49,7 @@ static void usage(void)
|
||||
printf(" cleardb <vnn> <dbid> deletes all records in a db\n");
|
||||
printf(" getrecmode <vnn> get recovery mode\n");
|
||||
printf(" setrecmode <vnn> <mode> set recovery mode\n");
|
||||
printf(" recover recover the cluster\n");
|
||||
printf(" recover <vnn> recover the cluster\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
@ -240,9 +240,14 @@ static int control_recover(struct ctdb_context *ctdb, int argc, const char **arg
|
||||
int i, j, ret;
|
||||
struct ctdb_dbid_map dbmap;
|
||||
|
||||
vnn = ctdb_get_vnn(ctdb);
|
||||
printf("recover\n");
|
||||
printf("this vnn:%d\n",vnn);
|
||||
if (argc < 1) {
|
||||
usage();
|
||||
}
|
||||
|
||||
|
||||
vnn = strtoul(argv[0], NULL, 0);
|
||||
|
||||
printf("recover ctdb from node %d\n", vnn);
|
||||
|
||||
/* 1: find a list of all nodes */
|
||||
printf("\n1: fetching list of nodes\n");
|
||||
|
Loading…
x
Reference in New Issue
Block a user