mirror of
https://github.com/samba-team/samba.git
synced 2025-01-25 06:04:04 +03:00
6784ff24b8
Seeing: ctdb_read_packet failed: Cannot allocate memory [..., 0] ../source3/lib/ctdbd_conn.c:121(cluster_fatal) cluster fatal event: ctdbd died The error is due to a memory allocation failure rather than ctdbd dying. However, the error message makes people wonder why ctdbd died. Another alternative would be to wrap cluster_fatal() and have the wrapper interpret the return value from ctdb_read_packet() to choose from a set of more precise messages to pass to cluster_fatal(). For a memory allocation it isn't strictly necessary to call cluster_fatal(), but all is probably lost and it is still probably better to try to exit cleanly as soon as possible instead of crashing somewhere. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Volker Lendecke <vl@samba.org> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Fri Oct 5 16:16:29 CEST 2018 on sn-devel-144