git.samba.org
/
gd
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
723529e
)
ctdb-common: Reset running state on failure
author
Amitay Isaacs
<amitay@gmail.com>
Thu, 10 May 2018 08:49:06 +0000
(18:49 +1000)
committer
Martin Schwenke
<martins@samba.org>
Tue, 5 Jun 2018 20:34:19 +0000
(22:34 +0200)
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
ctdb/common/run_event.c
patch
|
blob
|
history
diff --git
a/ctdb/common/run_event.c
b/ctdb/common/run_event.c
index 9ff18707715199ae28f143e4f21e2029fde546fd..44b0e7e4979c118f54e7d4a10efae418471db0d1 100644
(file)
--- a/
ctdb/common/run_event.c
+++ b/
ctdb/common/run_event.c
@@
-814,6
+814,7
@@
static void run_event_next_script(struct tevent_req *subreq)
state->script_subreq = NULL;
if (! status) {
D_ERR("run_proc failed for %s, ret=%d\n", script->name, ret);
+ run_event_stop_running(state->run_ctx);
tevent_req_error(req, ret);
return;
}