projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: keep active session state on redundant start command
[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 4ce2d43fab11159d5ebb64ae4b9147769558ecc7..2c2ce285a676461238703f2cb77a285cdb5a66b6 100644
(file)
--- a/
src/bin/lttng-sessiond/cmd.c
+++ b/
src/bin/lttng-sessiond/cmd.c
@@
-2651,7
+2651,8
@@
int cmd_start_trace(struct ltt_session *session)
/* Is the session already started? */
if (session->active) {
ret = LTTNG_ERR_TRACE_ALREADY_STARTED;
/* Is the session already started? */
if (session->active) {
ret = LTTNG_ERR_TRACE_ALREADY_STARTED;
- goto error;
+ /* Perform nothing */
+ goto end;
}
if (session->rotation_state == LTTNG_ROTATION_STATE_ONGOING &&
}
if (session->rotation_state == LTTNG_ROTATION_STATE_ONGOING &&
@@
-2779,6
+2780,7
@@
error:
session->cleared_after_last_stop =
session_cleared_after_last_stop;
}
session->cleared_after_last_stop =
session_cleared_after_last_stop;
}
+end:
return ret;
}
return ret;
}
This page took
0.023474 seconds
and
4
git commands to generate.