Fix: kernel metadata is generated on the fly for snapshot sessions
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Fri, 8 Feb 2019 02:30:11 +0000 (21:30 -0500)
committerJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Wed, 10 Apr 2019 20:20:10 +0000 (16:20 -0400)
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
src/bin/lttng-sessiond/kernel.c

index f8dcd718fc3cb73ce14d3ce5c5dc84a4a72800e4..75c680ec91f47364c53ba11bb3ab20ae0a515cdc 100644 (file)
@@ -1139,7 +1139,7 @@ enum lttng_error_code kernel_clear_session(struct ltt_session *session)
        assert(ksess);
        assert(ksess->consumer);
 
-       DBG("Cleat kernel session %s (session %" PRIu64 ")",
+       DBG("Clear kernel session %s (session %" PRIu64 ")",
                        session->name, session->id);
 
        rcu_read_lock();
@@ -1163,6 +1163,15 @@ enum lttng_error_code kernel_clear_session(struct ltt_session *session)
                        }
                }
 
+               if (!ksess->metadata) {
+                       /*
+                        * Nothing to do for the metadata.
+                        * This is a snpashot session.
+                        * The metadata is genererated on the fly.
+                        */
+                       continue;
+               }
+
                /*
                 * Clear the metadata channel.
                 * Metadata channel is not cleared per se but we still need to
This page took 0.027536 seconds and 5 git commands to generate.