*
* Called with session lock held.
*/
-int cmd_destroy_session(struct ltt_session *session,
- int *sock_fd)
+int cmd_destroy_session(struct ltt_session *session, int *sock_fd)
{
int ret;
enum lttng_error_code destruction_last_error = LTTNG_OK;
try {
the_rotation_thread_handle->unsubscribe_session_consumed_size_rotation(
*session);
- } catch (std::exception& e) {
+ } catch (const std::exception& e) {
/* Continue the destruction of the session anyway. */
ERR("Failed to unsubscribe rotation thread notification channel from consumed size condition during session destruction: %s",
e.what());
(int) trigger_owner,
ret_code);
}
+
+ goto end_unlock_session_list;
}
break;
}
try {
the_rotation_thread_handle->subscribe_session_consumed_size_rotation(
*session, new_value);
- } catch (std::exception& e) {
+ } catch (const std::exception& e) {
ERR("Failed to enable consumed-size notification in ROTATION_SET_SCHEDULE command: %s",
e.what());
ret = LTTNG_ERR_UNK;
try {
the_rotation_thread_handle
->unsubscribe_session_consumed_size_rotation(*session);
- } catch (std::exception& e) {
+ } catch (const std::exception& e) {
ERR("Failed to disable consumed-size notification in ROTATION_SET_SCHEDULE command: %s",
e.what());
ret = LTTNG_ERR_UNK;