struct lttng_channel *attr)
{
int ret = LTTCOMM_OK;
- struct lttng_ht *chan_ht;
struct ltt_ust_channel *uchan = NULL;
struct lttng_channel *defattr = NULL;
case LTTNG_DOMAIN_UST:
DBG2("Channel %s being created in UST global domain", uchan->name);
- /* Adding the channel to the channel hash table. */
- rcu_read_lock();
- lttng_ht_add_unique_str(usess->domain_global.channels, &uchan->node);
- rcu_read_unlock();
-
/* Enable channel for global domain */
ret = ust_app_create_channel_glb(usess, uchan);
break;
goto error_free_chan;
}
+ /* Adding the channel to the channel hash table. */
+ rcu_read_lock();
+ lttng_ht_add_unique_str(usess->domain_global.channels, &uchan->node);
+ rcu_read_unlock();
+
DBG2("Channel %s created successfully", uchan->name);
free(defattr);