projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: clear the CTF traces when all the streams are closed
[lttng-tools.git]
/
src
/
bin
/
lttng-relayd
/
lttng-relayd.h
diff --git
a/src/bin/lttng-relayd/lttng-relayd.h
b/src/bin/lttng-relayd/lttng-relayd.h
index 8039a7ec703d01f4672d32abcc9448ed49fb017a..6840aba31edda4c7c2181613ce35c06d081ca73f 100644
(file)
--- a/
src/bin/lttng-relayd/lttng-relayd.h
+++ b/
src/bin/lttng-relayd/lttng-relayd.h
@@
-25,7
+25,7
@@
#include <urcu/wfqueue.h>
#include <common/hashtable/hashtable.h>
#include <urcu/wfqueue.h>
#include <common/hashtable/hashtable.h>
-#include <common/index/
lttng
-index.h>
+#include <common/index/
ctf
-index.h>
#include "ctf-trace.h"
#include "ctf-trace.h"
@@
-163,9
+163,18
@@
struct relay_viewer_stream {
uint64_t total_index_received;
uint64_t tracefile_count;
uint64_t tracefile_count_current;
uint64_t total_index_received;
uint64_t tracefile_count;
uint64_t tracefile_count_current;
+ /* Stop after reading this tracefile. */
+ uint64_t tracefile_count_last;
struct lttng_ht_node_u64 stream_n;
struct rcu_head rcu_node;
struct ctf_trace *ctf_trace;
struct lttng_ht_node_u64 stream_n;
struct rcu_head rcu_node;
struct ctf_trace *ctf_trace;
+ /*
+ * This lock blocks only when the writer is about to start overwriting
+ * a file currently read by the reader.
+ *
+ * This is nested INSIDE the viewer_stream_rotation_lock.
+ */
+ pthread_mutex_t overwrite_lock;
/* Information telling us if the stream is a metadata stream. */
unsigned int metadata_flag:1;
/*
/* Information telling us if the stream is a metadata stream. */
unsigned int metadata_flag:1;
/*
This page took
0.023573 seconds
and
4
git commands to generate.