Fix: wrong behavior of save command when no session name is provided
A message that is not in the archive (sent off-list or not yet received): [email protected]
Merged! Thanks
David
Quoted 34 lines · Jonathan Rajotte Julien
No session name and no option --all should default to --all.
Signed-off-by Jonathan Rajotte Julien <[email protected]>--- src/bin/lttng/commands/save.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)src/bin/lttng/commands/save.c +2
-5@@ -93,12 +93,9 @@ int cmd_save(int argc, const char **argv)if (!opt_save_all) { session_name =poptGetArg (pc); -if (!session_name) { -ERR ("A session name must be provided if the \"all\" option is not used." ); - ret =CMD_ERROR ; - goto end; +if (session_name) { +DBG2 ("Session name: %s" , session_name); } -DBG2 ("Session name: %s" , session_name); } attr =lttng_save_session_attr_create ();Signature · 7 lines
2.0.0 _______________________________________________ lttng-dev mailing list [email protected] http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
_______________________________________________
lttng-dev mailing list
[email protected]
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev