[SCM] CTDB repository - branch 1.13 updated - ctdb-1.43-12-gba94ccc

Ronnie Sahlberg sahlberg at samba.org
Tue May 29 20:39:07 MDT 2012


The branch, 1.13 has been updated
       via  ba94cccca0a9ccad7c1de0939e74f0163ae41102 (commit)
      from  33a1661443d90ff4e72c219560a8c6a69c679bb5 (commit)

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


- Log -----------------------------------------------------------------
commit ba94cccca0a9ccad7c1de0939e74f0163ae41102
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Wed May 30 11:50:13 2012 +1000

    Run the shutdown eventscript before we tear down the transport
    
    This allows eventscripts to still be able to call and use ctdb during the shutdown phase.

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

Summary of changes:
 server/ctdb_control.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/server/ctdb_control.c b/server/ctdb_control.c
index 2a16a23..3268877 100644
--- a/server/ctdb_control.c
+++ b/server/ctdb_control.c
@@ -323,10 +323,10 @@ static int32_t ctdb_control_dispatch(struct ctdb_context *ctdb,
 		ctdb_stop_keepalive(ctdb);
 		ctdb_stop_monitoring(ctdb);
 		ctdb_release_all_ips(ctdb);
+		ctdb_event_script(ctdb, CTDB_EVENT_SHUTDOWN);
 		if (ctdb->methods != NULL) {
 			ctdb->methods->shutdown(ctdb);
 		}
-		ctdb_event_script(ctdb, CTDB_EVENT_SHUTDOWN);
 		exit(0);
 
 	case CTDB_CONTROL_TAKEOVER_IPv4:


-- 
CTDB repository


More information about the samba-cvs mailing list