Fix: missing LTTNG_OK return value for snapshot
authorDavid Goulet <dgoulet@efficios.com>
Mon, 4 Nov 2013 21:27:00 +0000 (16:27 -0500)
committerDavid Goulet <dgoulet@efficios.com>
Mon, 4 Nov 2013 21:27:00 +0000 (16:27 -0500)
After a successful kernel snapshot, the ret = LTTNG_OK was missing thus
returning 0 to the caller which was expecting LTTNG_OK.

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

index 5eda0775884cb93d7bbabe01df3e89c05659753a..531f65488568e2f9f6d4033781230af3def1ca7f 100644 (file)
@@ -927,6 +927,8 @@ int kernel_snapshot_record(struct ltt_kernel_session *ksess,
                (void) kernel_consumer_destroy_metadata(socket, ksess->metadata);
        }
 
+       ret = LTTNG_OK;
+
 error_consumer:
        /* Close newly opened metadata stream. It's now on the consumer side. */
        err = close(ksess->metadata_stream_fd);
This page took 0.026322 seconds and 4 git commands to generate.