Fix: consumerd: consumed size miscomputed during statistics sampling
[lttng-tools.git] / src / common / consumer / consumer.hpp
index c62e014530bfabdc39a28fb333f2d586056af384..cad2e2c5611139d814168807e73a0a3abad1fcc4 100644 (file)
@@ -258,7 +258,7 @@ struct lttng_consumer_channel {
        uint64_t lost_packets = 0;
 
        bool streams_sent_to_relayd = false;
-       uint64_t last_consumed_size_sample_sent = false;
+       uint64_t consumed_size_as_of_last_sample_sent = 0;
 };
 
 struct stream_subbuffer {
@@ -921,7 +921,8 @@ void lttng_consumer_set_command_sock_path(struct lttng_consumer_local_data *ctx,
  * Returns the return code of sendmsg : the number of bytes transmitted or -1
  * on error.
  */
-int lttng_consumer_send_error(struct lttng_consumer_local_data *ctx, int cmd);
+int lttng_consumer_send_error(struct lttng_consumer_local_data *ctx,
+                             enum lttcomm_return_code error_code);
 
 /*
  * Called from signal handler to ensure a clean exit.
This page took 0.025848 seconds and 4 git commands to generate.