Fix: skip uid registry when metadata key is 0
[lttng-tools.git] / src / bin / lttng-sessiond / ust-app.c
index 5cf90493947f4de46d9a4738e6cf640ba98fedcf..52d1da787f8142cd7cf92bab17acd9d3eda11235 100644 (file)
@@ -5975,6 +5975,11 @@ int ust_app_snapshot_record(struct ltt_ust_session *usess,
                        struct buffer_reg_channel *reg_chan;
                        struct consumer_socket *socket;
 
+                       if (!reg->registry->reg.ust->metadata_key) {
+                               /* Skip since no metadata is present */
+                               continue;
+                       }
+
                        /* Get consumer socket to use to push the metadata.*/
                        socket = consumer_find_socket_by_bitness(reg->bits_per_long,
                                        usess->consumer);
This page took 0.034725 seconds and 4 git commands to generate.