mirror of
https://github.com/samba-team/samba.git
synced 2025-03-10 12:58:35 +03:00
s3: fail db_open_ctdb if ctdb is not around
This commit is contained in:
parent
fe5f4d91ce
commit
8f0c863732
@ -1292,6 +1292,11 @@ struct db_context *db_open_ctdb(TALLOC_CTX *mem_ctx,
|
||||
db_ctdb->db = result;
|
||||
|
||||
conn = messaging_ctdbd_connection(procid_self());
|
||||
if (conn == NULL) {
|
||||
DEBUG(1, ("Could not connect to ctdb\n"));
|
||||
TALLOC_FREE(result);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (!NT_STATUS_IS_OK(ctdbd_db_attach(conn, name, &db_ctdb->db_id, tdb_flags))) {
|
||||
DEBUG(0, ("ctdbd_db_attach failed for %s\n", name));
|
||||
|
Loading…
x
Reference in New Issue
Block a user