Fix: stream intersection fails on snapshot of cleared session
[lttng-tools.git] / src / bin / lttng-sessiond / clear.c
index 03abbd8e19090c55301c393936824a5bfc2a2c2d..3ae70ea2fa5fd462d38e816a9328c58aaebc8081 100644 (file)
@@ -194,6 +194,16 @@ int cmd_clear_session(struct ltt_session *session, int *sock_fd)
                                goto end;
                        }
                }
+
+               /*
+                * 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 end;
+               }
        }
        ret = LTTNG_OK;
 end:
This page took 0.022735 seconds and 4 git commands to generate.