+
+ /*
+ * Remove immediately from the "session by name" hash table. Only one
+ * session is expected to exist with a given name for at any given time.
+ *
+ * Even if a session still technically exists for a little while longer,
+ * there is no point in performing action on a "destroyed" session.
+ */
+ iter.iter.node = &session->node_by_name.node;
+ ret = lttng_ht_del(ltt_sessions_ht_by_name, &iter);
+ LTTNG_ASSERT(!ret);
+