From: Mathieu Desnoyers Date: Sat, 21 May 2011 16:27:06 +0000 (-0400) Subject: Set metadata pointer earlier X-Git-Tag: v2.0-pre1~130 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=4f1c3952cad3ae2b2286d34b1c568632c18dfb77;p=lttng-modules.git Set metadata pointer earlier Signed-off-by: Mathieu Desnoyers --- diff --git a/ltt-debugfs-abi.c b/ltt-debugfs-abi.c index a889378f..80fecbe9 100644 --- a/ltt-debugfs-abi.c +++ b/ltt-debugfs-abi.c @@ -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 */ diff --git a/ltt-events.c b/ltt-events.c index 20db4c55..61b9de6a 100644 --- a/ltt-events.c +++ b/ltt-events.c @@ -554,9 +554,6 @@ int _ltt_event_metadata_statedump(struct ltt_session *session, if (ret) goto end; - - - event->metadata_dumped = 1; end: return ret;