@cryptotaxi247 / netdata / commits / 87b8ebc9e

Check that there is a valid thread when performing ACLK sync shutdown (#20555)

Make sure aclk sync thread has been initialized when performing shutdown

Stelios Fragkakis committed Jun 24, 2025 at 15:27 UTC 87b8ebc9e75232fa7138829ef61cdb0c4f69462d
1 file changed +3
src/database/sqlite/sqlite_aclk.c
+3
@@ -1022,6 +1022,9 @@ static inline bool queue_aclk_sync_cmd(enum aclk_database_opcode opcode, const v
1022
1023 void aclk_synchronization_shutdown(void)
1024 {
1025 + if (!aclk_sync_config.thread)
1026 + return;
1027 +
1028 // Send shutdown command, not that the completion is initialized
1029 // on init and still valid
1030 aclk_mqtt_client_reset();