fix
authorJulien Desfossez <jdesfossez@efficios.com>
Fri, 28 Jul 2017 15:54:38 +0000 (11:54 -0400)
committerJulien Desfossez <jdesfossez@efficios.com>
Wed, 30 Aug 2017 19:29:02 +0000 (15:29 -0400)
Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
src/common/consumer/consumer.c

index 1a8dadad8bb760fa93b4a2c2b0ab6f56e1c65be2..193b9ea1b1b5ae56ae4c5d918b7534d6e12d7f0a 100644 (file)
@@ -3357,10 +3357,13 @@ int consumer_post_rotation(struct lttng_consumer_stream *stream,
        case LTTNG_CONSUMER32_UST:
        case LTTNG_CONSUMER64_UST:
                /*
-                * Wakeup the metadata thread so it dumps the metadata cache
-                * to file again.
+                * The ust_metadata_pushed counter has been reset to 0, so now
+                * we can wakeup the metadata thread so it dumps the metadata
+                * cache to the new file.
                 */
-               consumer_metadata_wakeup_pipe(stream->chan);
+               if (stream->metadata_flag) {
+                       consumer_metadata_wakeup_pipe(stream->chan);
+               }
                break;
        default:
                ERR("Unknown consumer_data type");
This page took 0.028866 seconds and 5 git commands to generate.