Fix sessiond: report flush errors on session stop
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 9 Sep 2019 16:08:21 +0000 (12:08 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 9 Sep 2019 16:23:38 +0000 (12:23 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/cmd.c

index 82d92070398119fd60fce36adb55d17eb2aafc19..10fd45757397257d84a4da8c48de3385964c9fcd 100644 (file)
@@ -2693,6 +2693,7 @@ int cmd_stop_trace(struct ltt_session *session)
                        ret = kernel_metadata_flush_buffer(ksession->metadata_stream_fd);
                        if (ret < 0) {
                                ERR("Kernel metadata flush failed");
+                               error_occurred = true;
                        }
                }
 
@@ -2701,6 +2702,7 @@ int cmd_stop_trace(struct ltt_session *session)
                        ret = kernel_flush_buffer(kchan);
                        if (ret < 0) {
                                ERR("Kernel flush buffer error");
+                               error_occurred = true;
                        }
                }
 
This page took 0.027749 seconds and 4 git commands to generate.