projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: lttng-sessiond: output stream metadata before events
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
cmd.cpp
diff --git
a/src/bin/lttng-sessiond/cmd.cpp
b/src/bin/lttng-sessiond/cmd.cpp
index 49fa0c6864401f9aa6a95872c7ab9b4bf5e9a307..53a175372dadc5099b97d98d5795cf51a03ae600 100644
(file)
--- a/
src/bin/lttng-sessiond/cmd.cpp
+++ b/
src/bin/lttng-sessiond/cmd.cpp
@@
-4359,6
+4359,8
@@
int ust_regenerate_metadata(struct ltt_ust_session *usess)
struct ust_registry_event *event;
struct lttng_ht_iter iter_event;
struct ust_registry_event *event;
struct lttng_ht_iter iter_event;
+ chan->metadata_dumped = 0;
+
ret = ust_metadata_channel_statedump(registry, chan);
if (ret) {
pthread_mutex_unlock(®istry->lock);
ret = ust_metadata_channel_statedump(registry, chan);
if (ret) {
pthread_mutex_unlock(®istry->lock);
@@
-4367,7
+4369,8
@@
int ust_regenerate_metadata(struct ltt_ust_session *usess)
goto end;
}
cds_lfht_for_each_entry(chan->events->ht, &iter_event.iter,
goto end;
}
cds_lfht_for_each_entry(chan->events->ht, &iter_event.iter,
- event, node.node) {
+ event, node.node) {
+ event->metadata_dumped = 0;
ret = ust_metadata_event_statedump(registry,
chan, event);
if (ret) {
ret = ust_metadata_event_statedump(registry,
chan, event);
if (ret) {
This page took
0.023066 seconds
and
4
git commands to generate.