From: Mathieu Desnoyers Date: Thu, 22 Aug 2013 20:46:58 +0000 (-0400) Subject: Fix: snapshot should fail if no successful snapshot is taken X-Git-Tag: v2.3.0-rc3~34 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=b67578cb27784c08d36e0e445a81123ff507f835;p=lttng-tools.git Fix: snapshot should fail if no successful snapshot is taken Fixes #606, #608 Signed-off-by: Mathieu Desnoyers Signed-off-by: David Goulet --- diff --git a/src/bin/lttng-sessiond/cmd.c b/src/bin/lttng-sessiond/cmd.c index 64fa5c0bb..17dcfc416 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: