remove the "ctdb freeze" debugging command
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Thu, 5 Aug 2010 06:30:47 +0000 (16:30 +1000)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Thu, 5 Aug 2010 06:30:47 +0000 (16:30 +1000)
doc/ctdb.1.xml
tools/ctdb.c

index 55d8fc8f6561dfed434397bdc322870775387a2f..31832a385cc8ec5c03b814bcaac859dfbefe2e33 100644 (file)
@@ -1218,19 +1218,6 @@ HEALTH: NO-HEALTHY-NODES - ERROR - Backup of corrupted TDB in '/var/ctdb/persist
       </para>
     </refsect2>
 
-    <refsect2><title>freeze</title>
-      <para>
-        This command will lock all the local TDB databases causing clients 
-        that are accessing these TDBs such as samba3 to block until the
-        databases are thawed.
-      </para>
-      <para>
-        This is primarily used by the recovery daemon to stop all samba
-        daemons from accessing any databases while the database is recovered
-        and rebuilt.
-      </para>
-    </refsect2>
-
     <refsect2><title>thaw</title>
       <para>
         Thaw a previously frozen node.
index 4b81df7a2ad20d5734970b9cbd679e32bd1b6089..336c790c37c692f0165da863cf9903023ad98bca 100644 (file)
@@ -3272,28 +3272,6 @@ static int control_setdebug(struct ctdb_context *ctdb, int argc, const char **ar
 }
 
 
-/*
-  freeze a node
- */
-static int control_freeze(struct ctdb_context *ctdb, int argc, const char **argv)
-{
-       int ret;
-       uint32_t priority;
-       
-       if (argc == 1) {
-               priority = strtol(argv[0], NULL, 0);
-       } else {
-               priority = 0;
-       }
-       DEBUG(DEBUG_ERR,("Freeze by priority %u\n", priority));
-
-       ret = ctdb_ctrl_freeze_priority(ctdb, TIMELIMIT(), options.pnn, priority);
-       if (ret != 0) {
-               DEBUG(DEBUG_ERR, ("Unable to freeze node %u\n", options.pnn));
-       }               
-       return 0;
-}
-
 /*
   thaw a node
  */
@@ -4401,7 +4379,6 @@ static const struct {
        { "shutdown",        control_shutdown,          true,   false,  "shutdown ctdbd" },
        { "recover",         control_recover,           true,   false,  "force recovery" },
        { "ipreallocate",    control_ipreallocate,      true,   false,  "force the recovery daemon to perform a ip reallocation procedure" },
-       { "freeze",          control_freeze,            true,   false,  "freeze databases", "[priority:1-3]" },
        { "thaw",            control_thaw,              true,   false,  "thaw databases", "[priority:1-3]" },
        { "isnotrecmaster",  control_isnotrecmaster,    false,  false,  "check if the local node is recmaster or not" },
        { "killtcp",         kill_tcp,                  false,  false, "kill a tcp connection.", "<srcip:port> <dstip:port>" },