dont call ctdb_fatal() just because we are asked to restart a connection 1.0.64 obnox/1.0.64 origin/1.0.64
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Wed, 17 Dec 2008 01:01:40 +0000 (12:01 +1100)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Wed, 17 Dec 2008 01:01:40 +0000 (12:01 +1100)
commit5283f49ece2c42ca8a952989fcff6b9e1bcebcf5
tree2a18a0c5f108ed6a704d3e38a5076b1323bf176d
parentbd6871bb020841a806bd3af7c45707cef295ab13
dont call ctdb_fatal() just because we are asked to restart a connection
to a remote node and ctdb->methods is NULL.

This can happen when we are in the middle of a normal shutdown of the
daemon and we have already shut down the transport layer (thus setting
ctdb->methods == NULL in the transport layer destructor)
band there is some unprocessed data related to a remote node.

This prevents an ugly race condition where ctdb might sometimes (rare)
cause a core dump during "ctdb shutdown".
server/ctdb_server.c