Fix: removed useless key from relay_index
[lttng-tools.git] / src / bin / lttng-relayd / index.h
index fc184e97dc74d4844b6741a90af8d8fe0cb805eb..e7f9cdbd07d98ebafacc1dfb122fb525e18778f3 100644 (file)
@@ -36,10 +36,9 @@ struct relay_index {
        int to_close_fd;
 
        /* Index packet data. This is the data that is written on disk. */
-       struct lttng_packet_index index_data;
+       struct ctf_packet_index index_data;
 
        /* key1 = stream_id, key2 = net_seq_num */
-       struct lttng_ht_two_u64 key;
        struct lttng_ht_node_two_u64 index_n;
        struct rcu_head rcu_node;
        pthread_mutex_t mutex;
@@ -47,14 +46,12 @@ struct relay_index {
 
 struct relay_index *relay_index_create(uint64_t stream_id,
                uint64_t net_seq_num);
-struct relay_index *relay_index_find(uint64_t stream_id,
-               uint64_t net_seq_num, struct lttng_ht *ht);
-void relay_index_add(struct relay_index *index, struct lttng_ht *ht,
-               struct relay_index **_index);
-int relay_index_write(int fd, struct relay_index *index, struct lttng_ht *ht);
+struct relay_index *relay_index_find(uint64_t stream_id, uint64_t net_seq_num);
+void relay_index_add(struct relay_index *index, struct relay_index **_index);
+int relay_index_write(int fd, struct relay_index *index);
 void relay_index_free(struct relay_index *index);
 void relay_index_free_safe(struct relay_index *index);
-void relay_index_delete(struct relay_index *index, struct lttng_ht *ht);
-void relay_index_destroy_by_stream_id(uint64_t stream_id, struct lttng_ht *ht);
+void relay_index_delete(struct relay_index *index);
+void relay_index_destroy_by_stream_id(uint64_t stream_id);
 
 #endif /* _RELAY_INDEX_H */
This page took 0.023576 seconds and 4 git commands to generate.