The branch, v3-2-ctdb has been updated via d00bc38588e9138c8948843f07b7a101ce6e8b23 (commit) from 460168e6ca73b91dac7771e615551c4e798f31a3 (commit)
http://gitweb.samba.org/?p=obnox/samba-ctdb.git;a=shortlog;h=v3-2-ctdb - Log ----------------------------------------------------------------- commit d00bc38588e9138c8948843f07b7a101ce6e8b23 Author: Volker Lendecke <v...@samba.org> Date: Mon May 4 14:39:56 2009 +0200 Do not crash in ctdbd_traverse if ctdbd is not around Signed-off-by: Michael Adam <ob...@samba.org> ----------------------------------------------------------------------- Summary of changes: source/lib/ctdbd_conn.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) Changeset truncated at 500 lines: diff --git a/source/lib/ctdbd_conn.c b/source/lib/ctdbd_conn.c index e857753..33a69f6 100644 --- a/source/lib/ctdbd_conn.c +++ b/source/lib/ctdbd_conn.c @@ -1095,6 +1095,11 @@ NTSTATUS ctdbd_traverse(uint32 db_id, struct ctdbd_traverse_state state; status = ctdbd_init_connection(NULL, &conn); + if (!NT_STATUS_IS_OK(status)) { + DEBUG(0, ("ctdbd_init_connection failed: %s\n", + nt_errstr(status))); + return status; + } t.db_id = db_id; t.srvid = conn->rand_srvid; -- SAMBA-CTDB repository