pgpool2.git / summary / log / commit / refs

commit    2434fc1010618e1e6071cbf877e1f675c3098415
Author:   Tatsuo Ishii <ishii at sraoss.co.jp>
Date:     Tue Aug 10 05:09:16 2010 +0000

    Remove unnecessary global variable.


child.c | 1 + pool.h | 1 - pool_process_query.c | 2 -- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/child.c b/child.c index 4e928a3fa..5a7fd52cf 100644 --- a/child.c +++ b/child.c @@ -1760,6 +1760,7 @@ static RETSIGTYPE wakeup_handler(int sig) */ int select_load_balancing_node(void) { + int selected_slot; double total_weight,r; int i; diff --git a/pool.h b/pool.h index 9f7fcad43..4862b8cde 100644 --- a/pool.h +++ b/pool.h @@ -373,7 +373,6 @@ extern int my_proc_id; /* process table id (!= UNIX's PID) */ extern POOL_SYSTEMDB_CONNECTION_POOL *system_db_info; /* systemdb */ extern ProcessInfo *process_info; /* shmem process information table */ extern ConnectionInfo *con_info; /* shmem connection info table */ -extern int selected_slot; /* selected DB node for load balance */ extern POOL_REQUEST_INFO *Req_info; extern volatile sig_atomic_t *InRecovery; extern char remote_ps_data[]; /* used for set_ps_display */ diff --git a/pool_process_query.c b/pool_process_query.c index 5964c10f8..163017391 100644 --- a/pool_process_query.c +++ b/pool_process_query.c @@ -78,8 +78,6 @@ static bool is_internal_transaction_needed(Node *node); /* timeout sec for pool_check_fd */ static int timeoutsec; -int selected_slot; /* selected DB node */ - /* * Main module for query processing * reset_request: if non 0, call reset_backend to execute reset queries [parent: fbd9f0785170]