diff options
| author | pengbo | 2018-01-19 04:40:08 +0000 |
|---|---|---|
| committer | pengbo | 2018-01-19 04:40:08 +0000 |
| commit | 324d13e783edb3d8ced0166a1fddd9aff2ec285f (patch) | |
| tree | 76fdf21a3e8ac4b1d7454f988cfc8ccbb6e64b15 /common.php | |
| parent | 579833e695e011f8d47a6fff994a3393f9d8a37d (diff) | |
Change the PostgreSQL connection timeout parameter name.
Diffstat (limited to 'common.php')
| -rw-r--r-- | common.php | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -77,8 +77,8 @@ if (! defined('_PGPOOL2_LANG') || } // PostgreSQL connect timeout, default is 10 -if (! defined('_PGPOOL2_CONNECT_TIMEOUT')) { - define('_PGPOOL2_CONNECT_TIMEOUT', 10); +if (! defined('_PGPOOL2_PG_CONNECT_TIMEOUT')) { + define('_PGPOOL2_PG_CONNECT_TIMEOUT', 10); } /** @@ -161,7 +161,7 @@ function NodeActive($nodeNum) $params['health_check_database'] : 'template1', 'user' => $params['health_check_user'], 'password' => $params['health_check_password'], - 'connect_timeout' => _PGPOOL2_CONNECT_TIMEOUT + 'connect_timeout' => _PGPOOL2_PG_CONNECT_TIMEOUT, )); if ($conn == FALSE) { @@ -192,7 +192,7 @@ function NodeStandby($nodeNum) 'dbname' => 'template1', 'user' => $params['sr_check_user'], 'password' => $params['sr_check_password'], - 'connect_timeout' => _PGPOOL2_CONNECT_TIMEOUT, + 'connect_timeout' => _PGPOOL2_PG_CONNECT_TIMEOUT, )); if ($conn == FALSE) { @@ -231,7 +231,7 @@ function isSuperUser($user_name) 'dbname' => 'template1', 'user' => $_SESSION[SESSION_LOGIN_USER], 'password' => $_SESSION[SESSION_LOGIN_USER_PASSWORD], - 'connect_timeout' => _PGPOOL2_CONNECT_TIMEOUT, + 'connect_timeout' => _PGPOOL2_PG_CONNECT_TIMEOUT, )); // Try to connect health check user @@ -242,7 +242,7 @@ function isSuperUser($user_name) 'dbname' => 'template1', 'user' => $params['health_check_user'], 'password' => $params['health_check_password'], - 'connect_timeout' => _PGPOOL2_CONNECT_TIMEOUT + 'connect_timeout' => _PGPOOL2_PG_CONNECT_TIMEOUT, )); } if ($conn === FALSE) { return NULL; } |
