Fix: don't destroy the sockets if the snapshot was successful
authorJulien Desfossez <jdesfossez@efficios.com>
Tue, 9 Dec 2014 21:38:05 +0000 (16:38 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 10 Dec 2014 21:25:39 +0000 (16:25 -0500)
Missing a goto to skip the error condition that was destroying the
relayd sockets even if a snapshot was successful. We want to keep them
open to reuse them for the next snapshots.

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/cmd.c

index 942e770bac92e8fc56f053c378faa8e9ad65e95e..6f1f2514127efbc0d693b13f3f6375f42ff8a251 100644 (file)
@@ -2894,11 +2894,13 @@ static int record_kernel_snapshot(struct ltt_kernel_session *ksess,
        }
 
        ret = LTTNG_OK;
+       goto end;
 
 error_snapshot:
        /* Clean up copied sockets so this output can use some other later on. */
        consumer_destroy_output_sockets(output->consumer);
 error:
+end:
        return ret;
 }
 
This page took 0.028102 seconds and 4 git commands to generate.