@cryptotaxi247 / netdata-1 / commits / f8fe0e6d8

Remove bitfields from rrdhost. (#11964)

The order of the fields makes the bitfields irrelevant in this case.

vkalintiris committed Jan 13, 2022 at 19:35 UTC f8fe0e6d847a0ea4b8b378734487ed8e32cfe207
1 file changed +6 -6
database/rrd.h
+6 -6
@@ -801,22 +801,22 @@ struct rrdhost {
801 // ------------------------------------------------------------------------
802 // streaming of data to remote hosts - rrdpush
803
804 - unsigned int rrdpush_send_enabled:1; // 1 when this host sends metrics to another netdata
804 + unsigned int rrdpush_send_enabled; // 1 when this host sends metrics to another netdata
805 char *rrdpush_send_destination; // where to send metrics to
806 char *rrdpush_send_api_key; // the api key at the receiving netdata
807
808 // the following are state information for the threading
809 // streaming metrics from this netdata to an upstream netdata
810 struct sender_state *sender;
811 - volatile unsigned int rrdpush_sender_spawn:1; // 1 when the sender thread has been spawn
811 + volatile unsigned int rrdpush_sender_spawn; // 1 when the sender thread has been spawn
812 netdata_thread_t rrdpush_sender_thread; // the sender thread
813 void *dbsync_worker;
814
815 - volatile unsigned int rrdpush_sender_connected:1; // 1 when the sender is ready to push metrics
815 + volatile unsigned int rrdpush_sender_connected; // 1 when the sender is ready to push metrics
816 int rrdpush_sender_socket; // the fd of the socket to the remote host, or -1
817
818 - volatile unsigned int rrdpush_sender_error_shown:1; // 1 when we have logged a communication error
819 - volatile unsigned int rrdpush_sender_join:1; // 1 when we have to join the sending thread
818 + volatile unsigned int rrdpush_sender_error_shown; // 1 when we have logged a communication error
819 + volatile unsigned int rrdpush_sender_join; // 1 when we have to join the sending thread
820
821 SIMPLE_PATTERN *rrdpush_send_charts_matching; // pattern to match the charts to be sent
822
@@ -839,7 +839,7 @@ struct rrdhost {
839 // ------------------------------------------------------------------------
840 // health monitoring options
841
842 - unsigned int health_enabled:1; // 1 when this host has health enabled
842 + unsigned int health_enabled; // 1 when this host has health enabled
843 time_t health_delay_up_to; // a timestamp to delay alarms processing up to
844 char *health_default_exec; // the full path of the alarms notifications program
845 char *health_default_recipient; // the default recipient for all alarms