projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
relayd: track stdio output file descriptors
[lttng-tools.git]
/
src
/
bin
/
lttng-relayd
/
tracefile-array.c
diff --git
a/src/bin/lttng-relayd/tracefile-array.c
b/src/bin/lttng-relayd/tracefile-array.c
index a52ccd550823fdeeeaf9f892cbd7e09a74d0959e..c7a86966fc5d6bff46b41b00a8513b8f82b0e290 100644
(file)
--- a/
src/bin/lttng-relayd/tracefile-array.c
+++ b/
src/bin/lttng-relayd/tracefile-array.c
@@
-120,15
+120,16
@@
void tracefile_array_file_rotate(struct tracefile_array *tfa,
}
}
}
}
-void tracefile_array_commit_seq(struct tracefile_array *tfa)
+void tracefile_array_commit_seq(struct tracefile_array *tfa,
+ uint64_t new_seq_head)
{
uint64_t *headp, *tailp;
/* Increment overall head. */
{
uint64_t *headp, *tailp;
/* Increment overall head. */
- tfa->seq_head
++
;
- /* If we are committing our first index overall, set tail to
0
. */
+ tfa->seq_head
= new_seq_head
;
+ /* If we are committing our first index overall, set tail to
head
. */
if (tfa->seq_tail == -1ULL) {
if (tfa->seq_tail == -1ULL) {
- tfa->seq_tail =
0
;
+ tfa->seq_tail =
new_seq_head
;
}
if (!tfa->count) {
/* Not in tracefile rotation mode. */
}
if (!tfa->count) {
/* Not in tracefile rotation mode. */
This page took
0.024607 seconds
and
4
git commands to generate.