enum relay_connection_status {
RELAY_CONNECTION_STATUS_OK,
- /* An error occured while processing an event on the connection. */
+ /* An error occurred while processing an event on the connection. */
RELAY_CONNECTION_STATUS_ERROR,
/* Connection closed/shutdown cleanly. */
RELAY_CONNECTION_STATUS_CLOSED,
/*
* Rewind the current tracefile to the position at which the rotation
- * should have occured.
+ * should have occurred.
*/
lseek_ret = lseek(stream->stream_fd->fd,
stream->pos_after_last_complete_data_index, SEEK_SET);
struct ltt_kernel_channel *kchan;
struct ltt_kernel_session *ksession;
struct ltt_ust_session *usess;
- bool error_occured = false;
+ bool error_occurred = false;
assert(session);
* This error should not prevent the user from stopping
* the session. However, it will be reported at the end.
*/
- error_occured = true;
+ error_occurred = true;
}
}
/* Flag inactive after a successful stop. */
session->active = 0;
- ret = !error_occured ? LTTNG_OK : LTTNG_ERR_UNK;
+ ret = !error_occurred ? LTTNG_OK : LTTNG_ERR_UNK;
error:
return ret;
session_info = find_or_create_session_info(state, session_name,
session_uid, session_gid);
if (!session_info) {
- /* Allocation error or an internal error occured. */
+ /* Allocation error or an internal error occurred. */
goto error;
}
session_info = find_or_create_session_info(state, session_name,
session_uid, session_gid);
if (!session_info) {
- /* Allocation error or an internal error occured. */
+ /* Allocation error or an internal error occurred. */
ret = -1;
cmd_result = LTTNG_ERR_NOMEM;
goto end;
status = lttng_notification_channel_has_pending_notification(
rotate_notification_channel, ¬ification_pending);
if (status != LTTNG_NOTIFICATION_CHANNEL_STATUS_OK) {
- ERR("[rotation-thread ]Error occured while checking for pending notification");
+ ERR("[rotation-thread ]Error occurred while checking for pending notification");
ret = -1;
goto end;
}
ret = handle_notification_channel(fd, handle,
&thread);
if (ret) {
- ERR("[rotation-thread] Error occured while handling activity on notification channel socket");
+ ERR("[rotation-thread] Error occurred while handling activity on notification channel socket");
goto error;
}
}
struct lttng_ht_node_u64 node;
/*
* The current archive id corresponds to the number of session rotations
- * that have occured for this session. The archive id
+ * that have occurred for this session. The archive id
* is used to tag the "generation" of a stream. This tag allows the
* consumer and relay daemons to track when a given stream was created
* during the lifetime of a session.
/*
* Keep a state if this session was rotated after the last stop command.
* We only allow one rotation after a stop. At destroy, we also need to
- * know if a rotation occured since the last stop to rename the current
+ * know if a rotation occurred since the last stop to rename the current
* chunk.
*/
bool rotated_after_last_stop;
/*
* Unique key used to identify the channel on the consumer side.
* 0 is a reserved 'invalid' value used to indicate that the consumer
- * does not know about this channel (i.e. an error occured).
+ * does not know about this channel (i.e. an error occurred).
*/
uint64_t key;
/* Id of the tracing channel set on creation. */
ret = CMD_ERROR;
goto end;
default:
- ERR("Unknown error occured setting %s rotation schedule",
+ ERR("Unknown error occurred setting %s rotation schedule",
schedule_type_name);
ret = CMD_ERROR;
goto end;
if (pending < 0) {
/*
- * An error occured while running the command;
+ * An error occurred while running the command;
* don't send the 'pending' flag as the sessiond
* will not read it.
*/
if (pending < 0) {
/*
- * An error occured while running the command;
+ * An error occurred while running the command;
* don't send the 'pending' flag as the sessiond
* will not read it.
*/
if (pending < 0) {
/*
- * An error occured while running the command;
+ * An error occurred while running the command;
* don't send the 'pending' flag as the sessiond
* will not read it.
*/
if (pending < 0) {
/*
- * An error occured while running the command;
+ * An error occurred while running the command;
* don't send the 'pending' flag as the sessiond
* will not read it.
*/