From 1ebe70bd9e40455b23a175e38757a8a854004b64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jaramago=20Fern=C3=A1ndez?= Date: Thu, 26 Sep 2024 18:10:20 +0200 Subject: [PATCH] Cleanup: Fix RELEASE build and removed non-used variable --- lib/PgSQL_Monitor.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/PgSQL_Monitor.cpp b/lib/PgSQL_Monitor.cpp index 8fa95d9b3..5642d830f 100644 --- a/lib/PgSQL_Monitor.cpp +++ b/lib/PgSQL_Monitor.cpp @@ -643,7 +643,9 @@ pair get_task_conn(conn_pool_t& conn_pool, task_st_t& task_st } pgsql_conn_t create_conn(task_st_t& task_st) { +#ifdef DEBUG const mon_srv_t& srv { task_st.op_st.srv_info }; +#endif // Initialize connection parameters const string conn_str { build_conn_str(task_st) }; @@ -1410,12 +1412,10 @@ void* worker_thread(void* args) { static_cast*>(args) }; -#ifdef DEBUG pthread_t self = pthread_self(); -#endif - task_queue_t& tasks_queue = queues->first; - result_queue_t& _ = queues->second; + // TODO: Not used for now; results should be used by scheduler + // result_queue_t& _ = queues->second; bool recv_stop_signal = 0; queue next_tasks {};