1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

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)
This commit is contained in:
Ronnie Sahlberg 2011-08-23 10:23:18 +10:00
parent b77142ccc0
commit 49923d4fdc

View File

@ -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;
}