This avoids the server detaching a database if clients are allowed to
connect to databases.
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Michael Adam <obnox@samba.org>
return -1;
}
- if (ctdb->tunable.allow_client_db_attach == 0) {
- DEBUG(DEBUG_ERR, ("DB detach from database %s denied by "
- "tunable AllowClientDBAccess == 0\n",
+ if (ctdb->tunable.allow_client_db_attach == 1) {
+ DEBUG(DEBUG_ERR, ("DB detach from database %s denied. "
+ "Clients are allowed access to databases "
+ "(AllowClientDBAccess == 1)\n",
ctdb_db->db_name));
return -1;
}