Skip to content

Commit

Permalink
Cleanup: Fix RELEASE build and removed non-used variable
Browse files Browse the repository at this point in the history
  • Loading branch information
JavierJF committed Sep 26, 2024
1 parent 6af8b84 commit 1ebe70b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/PgSQL_Monitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,9 @@ pair<bool,pgsql_conn_t> 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) };
Expand Down Expand Up @@ -1410,12 +1412,10 @@ void* worker_thread(void* args) {
static_cast<pair<task_queue_t, result_queue_t>*>(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<task_st_t> next_tasks {};
Expand Down

0 comments on commit 1ebe70b

Please sign in to comment.