From ebdfd345483328b54e09fb838b6cea13f31c27d5 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 1 Aug 2007 10:03:13 +0000 Subject: 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) --- source3/lib/dbwrap_ctdb.c | 6 +++++- source3/lib/messages_ctdbd.c | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'source3/lib') diff --git a/source3/lib/dbwrap_ctdb.c b/source3/lib/dbwrap_ctdb.c index fff5ad1d9f..73d8eeffea 100644 --- a/source3/lib/dbwrap_ctdb.c +++ b/source3/lib/dbwrap_ctdb.c @@ -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)); } diff --git a/source3/lib/messages_ctdbd.c b/source3/lib/messages_ctdbd.c index dbdc8db3c1..6e9b934a75 100644 --- a/source3/lib/messages_ctdbd.c +++ b/source3/lib/messages_ctdbd.c @@ -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; -- cgit