mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
r24113: some little fixes to get the correct error message
when using "clustering = yes" and ctdbd isn't running metze (This used to be commit c5f020ba1fdefe0422dd466b9c68ff67c74ceddd)
This commit is contained in:
parent
a81c8b2a28
commit
ebdfd34548
@ -363,7 +363,11 @@ static struct ctdbd_connection *db_ctdbd_conn(struct db_ctdb_ctx *ctx)
|
||||
}
|
||||
|
||||
if (ctx->conn == NULL) {
|
||||
ctdbd_init_connection(ctx, &ctx->conn);
|
||||
NTSTATUS status;
|
||||
status = ctdbd_init_connection(ctx, &ctx->conn);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
return NULL;
|
||||
}
|
||||
set_my_vnn(ctdbd_vnn(ctx->conn));
|
||||
}
|
||||
|
||||
|
@ -88,7 +88,7 @@ NTSTATUS messaging_ctdbd_init(struct messaging_context *msg_ctx,
|
||||
status = ctdbd_messaging_connection(ctx, &ctx->conn);
|
||||
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
DEBUG(10, ("ctdbd_init_connection failed: %s\n",
|
||||
DEBUG(10, ("ctdbd_messaging_connection failed: %s\n",
|
||||
nt_errstr(status)));
|
||||
TALLOC_FREE(result);
|
||||
return status;
|
||||
|
Loading…
x
Reference in New Issue
Block a user