ctdb: use correct "persistent" state for ctdb_attach in "ctdb cattdb"
authorMichael Adam <obnox@samba.org>
Tue, 3 Jul 2012 12:28:36 +0000 (14:28 +0200)
committerMichael Adam <obnox@samba.org>
Tue, 3 Jul 2012 12:30:24 +0000 (14:30 +0200)
Originally, "ctdb cattdb" attached explicitly as non-persistent, which
is now forbidden for persistent databases by the server.

Pair-Programmed-With: Gregor Beck <gbeck@sernet.de>

tools/ctdb.c

index b806d2bb422e78c04618dcd4de08fe1e15a5a686..8e960a10b3c26a2f4ed1384ac8299173afe8cd5e 100644 (file)
@@ -3458,7 +3458,7 @@ static int control_cattdb(struct ctdb_context *ctdb, int argc, const char **argv
                return -1;
        }
 
-       ctdb_db = ctdb_attach(ctdb, TIMELIMIT(), db_name, false, 0);
+       ctdb_db = ctdb_attach(ctdb, TIMELIMIT(), db_name, persistent, 0);
 
        if (ctdb_db == NULL) {
                DEBUG(DEBUG_ERR,("Unable to attach to database '%s'\n", db_name));