[SCM] CTDB repository - branch master updated - ctdb-1.0.82-26-gb183567

Ronnie Sahlberg sahlberg at samba.org
Fri May 29 08:17:05 GMT 2009


The branch, master has been updated
       via  b18356764cd49d934eab901e596bb75c6e3ecdf8 (commit)
      from  3e49e41c21eb8c53084aa8cc7fd3557bdd8eb7b6 (commit)

http://gitweb.samba.org/?p=sahlberg/ctdb.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit b18356764cd49d934eab901e596bb75c6e3ecdf8
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Fri May 29 18:16:13 2009 +1000

    dont remove the socket when the dameon stops. This can race if the
    service is immediately restarted

-----------------------------------------------------------------------

Summary of changes:
 server/ctdb_daemon.c |   10 ----------
 1 files changed, 0 insertions(+), 10 deletions(-)


Changeset truncated at 500 lines:

diff --git a/server/ctdb_daemon.c b/server/ctdb_daemon.c
index 957f5d8..861c90c 100644
--- a/server/ctdb_daemon.c
+++ b/server/ctdb_daemon.c
@@ -617,15 +617,6 @@ failed:
 	return -1;	
 }
 
-/*
-  delete the socket on exit - called on destruction of autofree context
- */
-static int unlink_destructor(const char *name)
-{
-	unlink(name);
-	return 0;
-}
-
 static void sig_child_handler(struct event_context *ev,
 	struct signal_event *se, int signum, int count,
 	void *dont_care, 
@@ -694,7 +685,6 @@ int ctdb_start_daemon(struct ctdb_context *ctdb, bool do_fork)
 		DEBUG(DEBUG_ALERT,(__location__ " talloc_strdup failed.\n"));
 		exit(12);
 	}
-	talloc_set_destructor(domain_socket_name, unlink_destructor);	
 
 	ctdb->ev = event_context_init(NULL);
 


-- 
CTDB repository


More information about the samba-cvs mailing list