Skip to contentSkip to conversation

Fix: snapshot should fail if no successful snapshot is taken

PATCH Mathieu Desnoyers 1 participant 1 message Aug 24, 2013 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 1 line · * Mathieu Desnoyers ([email protected]) wrote:

I notice this patch is merged too.

Thanks,

Mathieu

Quoted 24 lines

---

src/bin/lttng-sessiond/cmd.c +2 -0
index 64fa5c0..17dcfc4 100644
@@ -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:
Signature · 9 lines
-- 
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com

_______________________________________________
lttng-dev mailing list
[email protected]
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
Signature · 3 lines
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com