}
data->fail_count++;
if (state->state == CTDB_CONTROL_TIMEOUT) {
- res = -ETIME;
+ res = -ETIMEDOUT;
} else {
res = -1;
}
goto after_change_status;
}
- if (status == ETIME) {
+ if (status == ETIMEDOUT) {
ctdb->monitor->event_script_timeouts++;
if (ctdb->monitor->event_script_timeouts >=
if (status != 0) {
DEBUG(DEBUG_ERR,(__location__ " recovered event script failed (status %d)\n", status));
- if (status == -ETIME) {
+ if (status == -ETIMEDOUT) {
ctdb_ban_self(ctdb);
}
}
TDB_DATA data;
if (status != 0) {
- if (status == -ETIME) {
+ if (status == -ETIMEDOUT) {
ctdb_ban_self(ctdb);
}
DEBUG(DEBUG_ERR,(__location__ " Failed to takeover IP %s on interface %s\n",
talloc_get_type(private_data, struct ctdb_do_updateip_state);
if (status != 0) {
- if (status == -ETIME) {
+ if (status == -ETIMEDOUT) {
ctdb_ban_self(ctdb);
}
DEBUG(DEBUG_ERR,
struct release_ip_callback_state *state =
talloc_get_type(private_data, struct release_ip_callback_state);
- if (status == -ETIME) {
+ if (status == -ETIMEDOUT) {
ctdb_ban_self(ctdb);
}
DEBUG(DEBUG_ERR,
(" \"ipreallocated\" event script failed (status %d)\n",
status));
- if (status == -ETIME) {
+ if (status == -ETIMEDOUT) {
ctdb_ban_self(ctdb);
}
}
struct ctdb_event_script_run_state *state = talloc_get_type_abort(
private_data, struct ctdb_event_script_run_state);
- if (result == ETIME) {
+ if (result == ETIMEDOUT) {
switch (state->event) {
case CTDB_EVENT_START_RECOVERY:
case CTDB_EVENT_RECOVERED:
tevent_loop_once(ctdb->ev);
}
- if (state.status == ETIME) {
+ if (state.status == ETIMEDOUT) {
/* Don't ban self if CTDB is starting up or shutting down */
if (call != CTDB_EVENT_INIT && call != CTDB_EVENT_SHUTDOWN) {
DEBUG(DEBUG_ERR,