diff options
author | Ronnie Sahlberg <ronniesahlberg@gmail.com> | 2011-08-23 10:23:18 +1000 |
---|---|---|
committer | Ronnie Sahlberg <ronniesahlberg@gmail.com> | 2011-08-23 10:23:18 +1000 |
commit | 49923d4fdc4dfaa702fd07c4db58912cc6994023 (patch) | |
tree | 80cf886e5b33b256d56b40e8df9620cd5e737046 | |
parent | b77142ccc0320fcc0a568f4180574c7ce867d9ec (diff) | |
download | samba-49923d4fdc4dfaa702fd07c4db58912cc6994023.tar.gz samba-49923d4fdc4dfaa702fd07c4db58912cc6994023.tar.xz samba-49923d4fdc4dfaa702fd07c4db58912cc6994023.zip |
Add the missing "persistent" argument to db_exist()
The API for this function has changed since the 1.2 branch where readonly locks are being merged from
(This used to be ctdb commit d01b9716d3e50f4c6d102e8411f0401b0f499699)
-rw-r--r-- | ctdb/tools/ctdb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ctdb/tools/ctdb.c b/ctdb/tools/ctdb.c index 5fada16c20..4f915d9721 100644 --- a/ctdb/tools/ctdb.c +++ b/ctdb/tools/ctdb.c @@ -3034,6 +3034,7 @@ static int control_cattdb(struct ctdb_context *ctdb, int argc, const char **argv const char *db_name; struct ctdb_db_context *ctdb_db; struct cattdb_data d; + bool persistent; if (argc < 1) { usage(); @@ -3042,7 +3043,7 @@ static int control_cattdb(struct ctdb_context *ctdb, int argc, const char **argv db_name = argv[0]; - if (db_exists(ctdb, db_name)) { + if (db_exists(ctdb, db_name, &persistent)) { DEBUG(DEBUG_ERR,("Database '%s' does not exist\n", db_name)); return -1; } |