Clean-up: sessiond: remove left-over code
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 5 Jul 2022 22:31:15 +0000 (18:31 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 7 Jul 2022 18:49:38 +0000 (14:49 -0400)
ust_metadata_channel_statedump no longer exists and _metadata_dumped
is unused.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I2fa3f3bcb8d1c5a779ab1cfa0375174b479ed21f

src/bin/lttng-sessiond/ust-app.cpp
src/bin/lttng-sessiond/ust-registry-channel.cpp
src/bin/lttng-sessiond/ust-registry-channel.hpp

index c80658cbbe512a2b5031b69e51cf339806c2240d..88db75f8f4d7da8f1f2ae5cc3d7978cae26fafdd 100644 (file)
@@ -6445,15 +6445,6 @@ static int handle_app_register_channel_notification(int sock,
                }
        }
 
-       /* Append to metadata */
-       if (!ust_reg_chan._metadata_dumped) {
-               /*ret_code = ust_metadata_channel_statedump(registry, ust_reg_chan);*/
-               if (ret_code) {
-                       ERR("Error appending channel metadata (errno = %d)", ret_code);
-                       goto reply;
-               }
-       }
-
 reply:
        DBG3("UST app replying to register channel key %" PRIu64
                        " with id %u, ret = %d", chan_reg_key, chan_id,
index e7fe73971391c60cca06537bbc830701746e999a..85448b7032626024c116837aa392643bb8ed4d92 100644 (file)
@@ -85,7 +85,6 @@ lsu::registry_channel::registry_channel(unsigned int channel_id,
        lst::stream_class(channel_id, lst::stream_class::header_type::LARGE),
        _key{-1ULL},
        _consumer_key{-1ULL},
-       _metadata_dumped{false},
        _next_event_id{0},
        _is_registered_listener{channel_registered_listener},
        _event_added_listener{event_added_listener},
index e8819812e139aa28062f86dfb9202241cc81f8b5..1e5745aedcfe2fdc4b980315c84414dbfbf4b2cb 100644 (file)
@@ -55,12 +55,6 @@ public:
        uint64_t _key;
        uint64_t _consumer_key;
 
-       /*
-        * Flag for this channel if the metadata was dumped once during
-        * registration. 0 means no, 1 yes.
-        */
-       unsigned int _metadata_dumped;
-
        /*
         * Hash table containing events sent by the UST tracer. MUST be accessed
         * with a RCU read side lock acquired.
This page took 0.028213 seconds and 4 git commands to generate.