X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fust-app.c;h=73c6d6a0fbab4387668d4aad18f77b964d7c69c3;hp=72a3223c1fa53baa0bf8f413e9e9e99d7e6d335d;hb=ffa3f2455c34da70fa040a3170e748889802cbf0;hpb=000baf6aa0ad8d7a985f147f1f47337b564150ca 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; }