The Samba-Bugzilla – Attachment 6652 Details for
Bug 8278
smbd panic when CTDB is unhealthy
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
proposed patch (as in master)
0001-s3-smbd-do-not-panic-when-CTDB-is-unhealthy-Bug-8278.patch (text/plain), 1.13 KB, created by
Christian Ambach
on 2011-06-30 11:28:05 UTC
(
hide
)
Description:
proposed patch (as in master)
Filename:
MIME Type:
Creator:
Christian Ambach
Created:
2011-06-30 11:28:05 UTC
Size:
1.13 KB
patch
obsolete
>From 847ca0a5d791d881be8d9a0721bf30399c80013b Mon Sep 17 00:00:00 2001 >From: Christian Ambach <ambi@samba.org> >Date: Wed, 29 Jun 2011 15:01:16 +0200 >Subject: [PATCH] s3:smbd do not panic when CTDB is unhealthy (Bug #8278) > >when CTDB is unhealthy, log a message and exit cleanly >instead of creating a core file > >Autobuild-User: Christian Ambach <ambi@samba.org> >Autobuild-Date: Thu Jun 30 13:18:12 CEST 2011 on sn-devel-104 >--- > source3/smbd/server.c | 9 +++++++++ > 1 files changed, 9 insertions(+), 0 deletions(-) > >diff --git a/source3/smbd/server.c b/source3/smbd/server.c >index 5aa3ddb..03d971b 100644 >--- a/source3/smbd/server.c >+++ b/source3/smbd/server.c >@@ -443,6 +443,15 @@ static void smbd_accept_connection(struct tevent_context *ev, > "because too many files are open\n")); > goto exit; > } >+ if (lp_clustering() && >+ NT_STATUS_EQUAL(status, >+ NT_STATUS_INTERNAL_DB_ERROR)) { >+ DEBUG(1,("child process cannot initialize " >+ "because connection to CTDB " >+ "has failed\n")); >+ goto exit; >+ } >+ > DEBUG(0,("reinit_after_fork() failed\n")); > smb_panic("reinit_after_fork() failed"); > } >-- >1.7.4.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
vl
:
review+
Actions:
View
Attachments on
bug 8278
:
6646
| 6652