fix
[lttng-tools.git] / 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.025538 seconds and 5 git commands to generate.