X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fust-app.c;h=fb52c0d06261b23677aa550fa29e8601adc97230;hb=f36ec06cfaf367d66c2f0d6fbfec33d074fd91be;hp=de4aab55a0f9cde742df9f9dad9ac4c0031f72e2;hpb=890d27f405dcd347f4e5a1db10b914c2553d2c47;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/ust-app.c b/src/bin/lttng-sessiond/ust-app.c index de4aab55a..fb52c0d06 100644 --- a/src/bin/lttng-sessiond/ust-app.c +++ b/src/bin/lttng-sessiond/ust-app.c @@ -478,6 +478,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; }