X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fclear.c;h=3ae70ea2fa5fd462d38e816a9328c58aaebc8081;hp=03abbd8e19090c55301c393936824a5bfc2a2c2d;hb=505b2d90aa87592186ecc2a119cf67fb3f90d168;hpb=ab5be9fa2eb5ba9600a82cd18fd3cfcbac69169a diff --git a/src/bin/lttng-sessiond/clear.c b/src/bin/lttng-sessiond/clear.c index 03abbd8e1..3ae70ea2f 100644 --- a/src/bin/lttng-sessiond/clear.c +++ b/src/bin/lttng-sessiond/clear.c @@ -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: