Set metadata pointer earlier
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sat, 21 May 2011 16:27:06 +0000 (12:27 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sat, 21 May 2011 16:27:06 +0000 (12:27 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
ltt-debugfs-abi.c
ltt-events.c

index a889378f95ae8f22403558ab713857c9cfb3c585..80fecbe9d729190ec9d0c5b1c97b1420460c308c 100644 (file)
@@ -222,8 +222,8 @@ int lttng_abi_create_channel(struct file *session_file,
        chan_file->private_data = chan;
        fd_install(chan_fd, chan_file);
        if (channel_type == METADATA_CHANNEL) {
-               lttng_metadata_create_events(chan_file);
                session->metadata = chan;
+               lttng_metadata_create_events(chan_file);
        }
 
        /* The channel created holds a reference on the session */
index 20db4c55bdc75703a8fad2b7016a38887ae768c1..61b9de6af5a649829252f9e8b24e553078b36534 100644 (file)
@@ -554,9 +554,6 @@ int _ltt_event_metadata_statedump(struct ltt_session *session,
        if (ret)
                goto end;
 
-
-
-
        event->metadata_dumped = 1;
 end:
        return ret;
This page took 0.02708 seconds and 4 git commands to generate.