Fix: update back the metadata len sent on failure
authorDavid Goulet <dgoulet@efficios.com>
Thu, 28 Nov 2013 18:20:15 +0000 (13:20 -0500)
committerDavid Goulet <dgoulet@efficios.com>
Thu, 28 Nov 2013 18:48:01 +0000 (13:48 -0500)
Acked-by: Julien Desfossez <julien.desfossez@efficios.com>
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng-sessiond/ust-app.c

index 58b8080b56dff398d82e7262257e770682f1afcc..94aa62a5c918e959a6132655b177f91507412c40 100644 (file)
@@ -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(&registry->lock);
+               registry->metadata_len_sent -= len;
+               pthread_mutex_unlock(&registry->lock);
                ret_val = ret;
                goto error_push;
        }
This page took 0.026983 seconds and 4 git commands to generate.