Fix: stream intersection fails on snapshot of cleared session
[lttng-tools.git] / src / bin / lttng-sessiond / cmd.c
index e45d4423ac0e0a51b123f2c0275e13f981c9f763..8f2afc3265c12e78423d2863f3d19735b6627ec0 100644 (file)
@@ -2791,6 +2791,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.024388 seconds and 4 git commands to generate.