diff options
author | Michael Adam <obnox@samba.org> | 2012-07-03 14:28:36 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2012-07-03 14:30:24 +0200 |
commit | 237d4c5c39da5d246d2c2c72844980eb95d0ce89 (patch) | |
tree | 77a92d0b3947c5e69f00e8b296bd9067be63399a /ctdb/tools | |
parent | 3fd0b8a5a55fdaea09ca23bb8f3738f5c70adf7c (diff) | |
download | samba-237d4c5c39da5d246d2c2c72844980eb95d0ce89.tar.gz samba-237d4c5c39da5d246d2c2c72844980eb95d0ce89.tar.xz samba-237d4c5c39da5d246d2c2c72844980eb95d0ce89.zip |
ctdb: use correct "persistent" state for ctdb_attach in "ctdb cattdb"
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>
(This used to be ctdb commit 85a367005bd669309bb7e532b60d27621110180d)
Diffstat (limited to 'ctdb/tools')
-rw-r--r-- | ctdb/tools/ctdb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ctdb/tools/ctdb.c b/ctdb/tools/ctdb.c index b806d2bb42..8e960a10b3 100644 --- a/ctdb/tools/ctdb.c +++ b/ctdb/tools/ctdb.c @@ -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)); |