Fix: wrong error code returned by kernel_snapshot_record()
[lttng-tools.git] / src / bin / lttng-sessiond / kernel.c
index 8892e76dc144f7963be7813647df05e5f9006da1..760db52ea46955bc8139c99881cfc1ac59ec3cb2 100644 (file)
@@ -1023,7 +1023,7 @@ int kernel_snapshot_record(struct ltt_kernel_session *ksess,
                /* Put back the saved consumer output into the session. */
                ksess->consumer = saved_output;
                if (ret < 0) {
-                       ret = LTTNG_ERR_KERN_CONSUMER_FAIL;
+                       ret = LTTNG_ERR_KERN_META_FAIL;
                        goto error_consumer;
                }
 
This page took 0.024122 seconds and 4 git commands to generate.