projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
relayd: add logging statements in `viewer_get_packet()`
[lttng-tools.git]
/
src
/
bin
/
lttng-relayd
/
stream.cpp
diff --git
a/src/bin/lttng-relayd/stream.cpp
b/src/bin/lttng-relayd/stream.cpp
index 15800929552fe56242628a7e51a7b79bbc727920..b57c061c571b41fea32997d5c778eabee233764c 100644
(file)
--- a/
src/bin/lttng-relayd/stream.cpp
+++ b/
src/bin/lttng-relayd/stream.cpp
@@
-71,7
+71,7
@@
static void stream_complete_rotation(struct relay_stream *stream)
}
lttng_trace_chunk_put(stream->trace_chunk);
stream->trace_chunk = stream->ongoing_rotation.value.next_trace_chunk;
}
lttng_trace_chunk_put(stream->trace_chunk);
stream->trace_chunk = stream->ongoing_rotation.value.next_trace_chunk;
- stream->ongoing_rotation =
(typeof(stream->ongoing_rotation)) {}
;
+ stream->ongoing_rotation =
LTTNG_OPTIONAL_INIT_UNSET
;
stream->completed_rotation_count++;
}
stream->completed_rotation_count++;
}
@@
-261,7
+261,7
@@
static int rotate_truncate_stream(struct relay_stream *stream)
while (copy_bytes_left) {
ssize_t io_ret;
char copy_buffer[FILE_IO_STACK_BUFFER_SIZE];
while (copy_bytes_left) {
ssize_t io_ret;
char copy_buffer[FILE_IO_STACK_BUFFER_SIZE];
- const off_t copy_size_this_pass = std::min(copy_bytes_left, sizeof(copy_buffer));
+ const off_t copy_size_this_pass = std::min
<uint64_t>
(copy_bytes_left, sizeof(copy_buffer));
io_ret = fs_handle_read(previous_stream_file, copy_buffer,
copy_size_this_pass);
io_ret = fs_handle_read(previous_stream_file, copy_buffer,
copy_size_this_pass);
This page took
0.024112 seconds
and
4
git commands to generate.