git.samba.org
/
sahlberg
/
ctdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7e9c00
)
Do not allow "ctdb eventscript" to start new eventscripts while we are in recovery...
author
Ronnie Sahlberg
<ronniesahlberg@gmail.com>
Wed, 16 Jul 2008 23:04:15 +0000
(09:04 +1000)
committer
Ronnie Sahlberg
<ronniesahlberg@gmail.com>
Wed, 16 Jul 2008 23:04:15 +0000
(09:04 +1000)
server/eventscript.c
patch
|
blob
|
history
diff --git
a/server/eventscript.c
b/server/eventscript.c
index 316812290d29db46e11302525216978c235f9e33..057bc8077cb57f2d7e44d9b951c93b9cb8429bdd 100644
(file)
--- a/
server/eventscript.c
+++ b/
server/eventscript.c
@@
-489,6
+489,11
@@
int32_t ctdb_run_eventscripts(struct ctdb_context *ctdb,
DEBUG(DEBUG_NOTICE,("Forced running of eventscripts with arguments %s\n", indata.dptr));
+ if (ctdb->recovery_mode != CTDB_RECOVERY_NORMAL) {
+ DEBUG(DEBUG_ERR, (__location__ " Aborted running eventscript \"%s\" while in RECOVERY mode\n", indata.dptr));
+ return -1;
+ }
+
ctdb_disable_monitoring(ctdb);
ret = ctdb_event_script_callback(ctdb,