[lttng-dev] [PATCH lttng-tools] Fix: snapshot should fail if no successful snapshot is taken
Mathieu Desnoyers
mathieu.desnoyers at efficios.com
Thu Aug 22 16:46:58 EDT 2013
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers at efficios.com>
---
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
More information about the lttng-dev
mailing list