Fix: stream intersection fails on snapshot of cleared session
[lttng-tools.git] / src / bin / lttng-sessiond / cmd.c
index 2963577563cc94aa658003e89095c95b36fdb770..8c1776072c35d1aae2206007c70bd193a60cd89e 100644 (file)
@@ -2794,6 +2794,16 @@ int cmd_start_trace(struct ltt_session *session)
                }
        }
 
+       /*
+        * Open a packet in every stream of the session to ensure that viewers
+        * can correctly identify the boundaries of the periods during which
+        * tracing was active for this session.
+        */
+       ret = session_open_packets(session);
+       if (ret != LTTNG_OK) {
+               goto error;
+       }
+
        /*
         * Clear the flag that indicates that a rotation was done while the
         * session was stopped.
This page took 0.023886 seconds and 5 git commands to generate.