git.samba.org
/
vlendec
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9881ec8
)
Run the shutdown eventscript before we tear down the transport
author
Ronnie Sahlberg
<ronniesahlberg@gmail.com>
Wed, 30 May 2012 01:50:13 +0000
(11:50 +1000)
committer
Ronnie Sahlberg
<ronniesahlberg@gmail.com>
Wed, 30 May 2012 01:51:38 +0000
(11:51 +1000)
This allows eventscripts to still be able to call and use ctdb during the shutdown phase.
(This used to be ctdb commit
1a6a011c772f7d302d114d7c8a151fa7820ec85f
)
ctdb/server/ctdb_control.c
patch
|
blob
|
history
diff --git
a/ctdb/server/ctdb_control.c
b/ctdb/server/ctdb_control.c
index 5c1eedd4c98d9abe4153d9c4956a589c63802ae8..9708acd8cf33a50f21bdf5369a872230ffb77427 100644
(file)
--- a/
ctdb/server/ctdb_control.c
+++ b/
ctdb/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: