Fix: snapshot should fail if no successful snapshot is taken
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 22 Aug 2013 20:46:58 +0000 (16:46 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Thu, 22 Aug 2013 20:52:08 +0000 (16:52 -0400)
Fixes #606, #608

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng-sessiond/cmd.c

index 64fa5c0bb5c1e870cd11d1f7e6cd3a69f2b7c6da..17dcfc41685a2562aa7d01f297cabe324af7354c 100644 (file)
@@ -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:
This page took 0.027647 seconds and 4 git commands to generate.