summaryrefslogtreecommitdiffstats
path: root/ctdb/server/eventscript.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronniesahlberg@gmail.com>2009-11-26 13:42:12 +1100
committerRonnie Sahlberg <ronniesahlberg@gmail.com>2009-11-26 13:42:12 +1100
commited4f3ea3ccf365afc3475acad9549d92a8e04fed (patch)
treedad154a3e269583116eaed688e2e70da0636f8da /ctdb/server/eventscript.c
parent8029db6a9141f306b2621bdad76915062f2e115f (diff)
downloadsamba-ed4f3ea3ccf365afc3475acad9549d92a8e04fed.tar.gz
samba-ed4f3ea3ccf365afc3475acad9549d92a8e04fed.tar.xz
samba-ed4f3ea3ccf365afc3475acad9549d92a8e04fed.zip
resolve some conflicts from merging from martins branch
(This used to be ctdb commit d3e7407dc9854ec358d081777c5450ec68b17862)
Diffstat (limited to 'ctdb/server/eventscript.c')
-rw-r--r--ctdb/server/eventscript.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/ctdb/server/eventscript.c b/ctdb/server/eventscript.c
index e04dd48db1..a1ac36eb47 100644
--- a/ctdb/server/eventscript.c
+++ b/ctdb/server/eventscript.c
@@ -809,12 +809,8 @@ static int ctdb_event_script_callback_v(struct ctdb_context *ctdb,
ctdb->current_monitor_status_ctx = NULL;
}
-<<<<<<< HEAD:server/eventscript.c
- ctdb->current_monitor_status_ctx = talloc(ctdb->monitor_event_script_ctx, struct ctdb_monitor_script_status_ctx);
-=======
ctdb->current_monitor_status_ctx = talloc(ctdb, struct ctdb_monitor_script_status_ctx);
CTDB_NO_MEMORY(ctdb, ctdb->current_monitor_status_ctx);
->>>>>>> martins-svart/status-test-2:server/eventscript.c
ctdb->current_monitor_status_ctx->scripts = NULL;
} else {
/* any other script will first terminate any monitor event */
@@ -823,17 +819,9 @@ static int ctdb_event_script_callback_v(struct ctdb_context *ctdb,
ctdb->monitor_event_script_ctx = NULL;
}
/* and then use a context common for all non-monitor events */
-<<<<<<< HEAD:server/eventscript.c
- if (ctdb->other_event_script_ctx != NULL) {
- talloc_free(ctdb->other_event_script_ctx);
- ctdb->other_event_script_ctx = NULL;
- }
- ctdb->other_event_script_ctx = talloc_new(ctdb);
-=======
if (ctdb->other_event_script_ctx == NULL) {
ctdb->other_event_script_ctx = talloc_new(ctdb);
}
->>>>>>> martins-svart/status-test-2:server/eventscript.c
mem_ctx = ctdb->other_event_script_ctx;
}
@@ -1005,11 +993,8 @@ static void run_eventscripts_callback(struct ctdb_context *ctdb, int status,
return;
}
-<<<<<<< HEAD:server/eventscript.c
-=======
/* Returns rest of string, or NULL if no match. */
->>>>>>> martins-svart/status-test-2:server/eventscript.c
static const char *get_call(const char *p, enum ctdb_eventscript_call *call)
{
unsigned int len;
@@ -1021,21 +1006,10 @@ static const char *get_call(const char *p, enum ctdb_eventscript_call *call)
for (*call = 0; *call < ARRAY_SIZE(call_names); (*call)++) {
len = strlen(call_names[*call]);
if (strncmp(p, call_names[*call], len) == 0) {
-<<<<<<< HEAD:server/eventscript.c
- /* If that's it, we're good. */
- if (*p == '\0')
- return p;
- /* Otherwise, if whitespace is next, good. */
- len = strspn(p, " \t");
- if (len)
- return p + len;
- /* Hmm, extra chars: keep looking. */
-=======
/* If end of string or whitespace, we're done. */
if (strcspn(p + len, " \t") == 0) {
return p + len;
}
->>>>>>> martins-svart/status-test-2:server/eventscript.c
}
}
return NULL;