pgpool2.git / summary / log / commit / refs
commit 5406fae9f18eb5d790fc58b30a479ade5ea8430d
Author: Toshihiro Kitagawa <kitagawa at sraoss.co.jp>
Date: Fri Feb 18 11:51:10 2011 +0000
Remove unnecessary function: load_balance_enabled().
pool_process_query.c | 16 +---------------
pool_proto_modules.h | 3 +--
2 files changed, 2 insertions(+), 17 deletions(-)
diff --git a/pool_process_query.c b/pool_process_query.c
index 5df6d6863..a53e99e3b 100644
--- a/pool_process_query.c
+++ b/pool_process_query.c
@@ -5,7 +5,7 @@
* pgpool: a language independent connection pool server for PostgreSQL
* written by Tatsuo Ishii
*
- * Copyright (c) 2003-2010 PgPool Global Development Group
+ * Copyright (c) 2003-2011 PgPool Global Development Group
*
* Permission to use, copy, modify, and distribute this software and
* its documentation for any purpose and without fee is hereby
@@ -1436,20 +1436,6 @@ static int reset_backend(POOL_CONNECTION_POOL *backend, int qcnt)
return 1;
}
-/*
- * return non 0 if load balance is possible
- */
-int load_balance_enabled(POOL_CONNECTION_POOL *backend, Node* node, char *sql)
-{
- return (pool_config->load_balance_mode &&
- (DUAL_MODE || pool_config->parallel_mode) &&
- MAJOR(backend) == PROTO_MAJOR_V3 &&
- TSTATE(backend, MASTER_NODE_ID) == 'I' &&
- is_select_query(node, sql) &&
- !is_sequence_query(node));
-}
-
-
/*
* returns non 0 if the SQL statement can be load
* balanced. Followings are statemnts go into this category.
diff --git a/pool_proto_modules.h b/pool_proto_modules.h
index 300213e16..dd4ccd306 100644
--- a/pool_proto_modules.h
+++ b/pool_proto_modules.h
@@ -6,7 +6,7 @@
* pgpool: a language independent connection pool server for PostgreSQL
* written by Tatsuo Ishii
*
- * Copyright (c) 2003-2009 PgPool Global Development Group
+ * Copyright (c) 2003-2011 PgPool Global Development Group
*
* Permission to use, copy, modify, and distribute this software and
* its documentation for any purpose and without fee is hereby
@@ -153,7 +153,6 @@ extern int is_sequence_query(Node *node);
extern int is_start_transaction_query(Node *node);
extern int is_commit_query(Node *node);
extern int is_strict_query(Node *node); /* returns non 0 if this is strict query */
-extern int load_balance_enabled(POOL_CONNECTION_POOL *backend, Node* node, char *sql);
extern int need_insert_lock(POOL_CONNECTION_POOL *backend, char *query, Node *node);
extern POOL_STATUS insert_lock(POOL_CONNECTION *frontend, POOL_CONNECTION_POOL *backend, char *query, InsertStmt *node, int lock_kind);
extern char *parse_copy_data(char *buf, int len, char delimiter, int col_id);
[parent: caba82f8c853]