mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
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
This commit is contained in:
parent
d2adf96402
commit
847ca0a5d7
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user