Fix: remove assertions of the existence of a trace chunk
[lttng-tools.git] / src / bin / lttng-relayd / index.h
index 80fe86ab024f8e668e51a1553d52385e1c666ad2..08388c001872a221cbdd6f42960513619ca42759 100644 (file)
@@ -34,7 +34,6 @@ struct relay_index {
        /*
         * index lock nests inside stream lock.
         */
-       pthread_mutex_t reflock;        /* Protects refcounting. */
        struct urcu_ref ref;            /* Reference from getters. */
        struct relay_stream *stream;    /* Back ref to stream */
 
@@ -47,6 +46,8 @@ struct relay_index {
 
        /* Index packet data. This is the data that is written on disk. */
        struct ctf_packet_index index_data;
+       /* Data + padding size of this packet, filled by the data thread. */
+       uint64_t total_size;
 
        bool has_index_data;
        bool flushed;
@@ -74,5 +75,6 @@ int relay_index_try_flush(struct relay_index *index);
 void relay_index_close_all(struct relay_stream *stream);
 void relay_index_close_partial_fd(struct relay_stream *stream);
 uint64_t relay_index_find_last(struct relay_stream *stream);
+int relay_index_switch_all_files(struct relay_stream *stream);
 
 #endif /* _RELAY_INDEX_H */
This page took 0.023761 seconds and 4 git commands to generate.