[lttng-dev] [PATCH lttng-tools] Fix: snapshot should fail if no successful snapshot is taken

Mathieu Desnoyers mathieu.desnoyers at efficios.com
Sat Aug 24 14:55:10 EDT 2013


* Mathieu Desnoyers (mathieu.desnoyers at efficios.com) wrote:
> Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers at efficios.com>

I notice this patch is merged too.

Thanks,

Mathieu

> ---
> diff --git a/src/bin/lttng-sessiond/cmd.c b/src/bin/lttng-sessiond/cmd.c
> index 64fa5c0..17dcfc4 100644
> --- a/src/bin/lttng-sessiond/cmd.c
> +++ b/src/bin/lttng-sessiond/cmd.c
> @@ -2836,6 +2836,8 @@ int cmd_snapshot_record(struct ltt_session *session,
>  
>  	if (snapshot_success) {
>  		session->snapshot.nb_snapshot++;
> +	} else {
> +		ret = LTTNG_ERR_SNAPSHOT_FAIL;
>  	}
>  
>  error:
> 
> -- 
> Mathieu Desnoyers
> EfficiOS Inc.
> http://www.efficios.com
> 
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

-- 
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com



More information about the lttng-dev mailing list