projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: sessiond: snapshot errors don't clear session's trace chunk
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
cmd.c
diff --git
a/src/bin/lttng-sessiond/cmd.c
b/src/bin/lttng-sessiond/cmd.c
index 1c53cadf824e7a5d7ab6f24cd43707a0af303f0d..93df59ccdc97d8fe26578866a96ff48229015110 100644
(file)
--- a/
src/bin/lttng-sessiond/cmd.c
+++ b/
src/bin/lttng-sessiond/cmd.c
@@
-4653,7
+4653,7
@@
enum lttng_error_code snapshot_record(struct ltt_session *session,
snapshot_output->max_size);
if (nb_packets_per_stream < 0) {
ret_code = LTTNG_ERR_MAX_SIZE_INVALID;
snapshot_output->max_size);
if (nb_packets_per_stream < 0) {
ret_code = LTTNG_ERR_MAX_SIZE_INVALID;
- goto error;
+ goto error
_close_trace_chunk
;
}
if (session->kernel_session) {
}
if (session->kernel_session) {
@@
-4661,7
+4661,7
@@
enum lttng_error_code snapshot_record(struct ltt_session *session,
snapshot_kernel_consumer_output, session,
wait, nb_packets_per_stream);
if (ret_code != LTTNG_OK) {
snapshot_kernel_consumer_output, session,
wait, nb_packets_per_stream);
if (ret_code != LTTNG_OK) {
- goto error;
+ goto error
_close_trace_chunk
;
}
}
}
}
@@
-4670,10
+4670,10
@@
enum lttng_error_code snapshot_record(struct ltt_session *session,
snapshot_ust_consumer_output, session,
wait, nb_packets_per_stream);
if (ret_code != LTTNG_OK) {
snapshot_ust_consumer_output, session,
wait, nb_packets_per_stream);
if (ret_code != LTTNG_OK) {
- goto error;
+ goto error
_close_trace_chunk
;
}
}
}
}
-
+error_close_trace_chunk:
if (session_close_trace_chunk(
session, session->current_trace_chunk, NULL, NULL)) {
/*
if (session_close_trace_chunk(
session, session->current_trace_chunk, NULL, NULL)) {
/*
This page took
0.024134 seconds
and
4
git commands to generate.