From ffa3f2455c34da70fa040a3170e748889802cbf0 Mon Sep 17 00:00:00 2001 From: David Goulet Date: Thu, 28 Nov 2013 13:20:15 -0500 Subject: [PATCH] Fix: update back the metadata len sent on failure Acked-by: Julien Desfossez Signed-off-by: David Goulet --- src/bin/lttng-sessiond/ust-app.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/bin/lttng-sessiond/ust-app.c b/src/bin/lttng-sessiond/ust-app.c index 72a3223c1..73c6d6a0f 100644 --- a/src/bin/lttng-sessiond/ust-app.c +++ b/src/bin/lttng-sessiond/ust-app.c @@ -495,6 +495,11 @@ push_data: if (ret == -LTTCOMM_CONSUMERD_CHANNEL_FAIL) { ret = 0; } + + /* Update back the actual metadata len sent since it failed here. */ + pthread_mutex_lock(®istry->lock); + registry->metadata_len_sent -= len; + pthread_mutex_unlock(®istry->lock); ret_val = ret; goto error_push; } -- 2.34.1