Create a new command "ctdb sync" that isd just an alias for "ctdb ipreallocate"
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Mon, 9 Aug 2010 23:43:17 +0000 (09:43 +1000)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Mon, 9 Aug 2010 23:49:55 +0000 (09:49 +1000)
tools/ctdb.c

index 0a95da0aece917170c449e55f648a7ec82105810..76d1febaf2840c5fda5b48819ed1508798263f77 100644 (file)
@@ -4378,6 +4378,7 @@ static const struct {
        { "showban",         control_showban,           true,   false,  "show ban information"},
        { "shutdown",        control_shutdown,          true,   false,  "shutdown ctdbd" },
        { "recover",         control_recover,           true,   false,  "force recovery" },
+       { "sync",            control_ipreallocate,      true,   false,  "wait until ctdbd has synced all state changes" },
        { "ipreallocate",    control_ipreallocate,      true,   false,  "force the recovery daemon to perform a ip reallocation procedure" },
        { "thaw",            control_thaw,              true,   false,  "thaw databases", "[priority:1-3]" },
        { "isnotrecmaster",  control_isnotrecmaster,    false,  false,  "check if the local node is recmaster or not" },
@@ -4418,6 +4419,7 @@ static const struct {
        { "getdbprio",        control_getdbprio,        false,  false, "Get DB priority", "<dbid>"},
        { "msglisten",        control_msglisten,        false,  false, "Listen on a srvid port for messages", "<msg srvid>"},
        { "msgsend",          control_msgsend,  false,  false, "Send a message to srvid", "<srvid> <message>"},
+       { "sync",            control_ipreallocate,      true,   false,  "wait until ctdbd has synced all state changes" },
 };
 
 /*