diff options
| author | mike.benoit <mikeb@timetrex.com> | 2016-05-15 15:04:11 -0700 |
|---|---|---|
| committer | Damien Regad <dregad@mantisbt.org> | 2020-01-25 01:12:08 +0100 |
| commit | 497aa7c1de070ebd86a74981eb0d6a81e2d14900 (patch) | |
| tree | 06fdd5ee0d54dc73586bcdf4c179eead81c437b6 /adodb-loadbalancer.inc.php | |
| parent | d85460819aeae1b8bdef3d7812e274c1b8c0828a (diff) | |
| download | adodb-497aa7c1de070ebd86a74981eb0d6a81e2d14900.tar.gz adodb-497aa7c1de070ebd86a74981eb0d6a81e2d14900.tar.bz2 adodb-497aa7c1de070ebd86a74981eb0d6a81e2d14900.zip | |
Few more minor cleanups.
Diffstat (limited to 'adodb-loadbalancer.inc.php')
| -rw-r--r-- | adodb-loadbalancer.inc.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/adodb-loadbalancer.inc.php b/adodb-loadbalancer.inc.php index 7c98ac33..581f1be8 100644 --- a/adodb-loadbalancer.inc.php +++ b/adodb-loadbalancer.inc.php @@ -148,7 +148,7 @@ class ADOdbLoadBalancer if ( $this->last_connection_id[$obj->type] == $i ) { $this->last_connection_id[$obj->type] = FALSE; } - + unset($this->connections[$i]); return TRUE; @@ -238,7 +238,7 @@ class ADOdbLoadBalancer if ( is_array( $this->user_defined_session_init_sql ) ) { foreach( $this->user_defined_session_init_sql as $session_init_sql ) { $adodb_obj->Execute( $session_init_sql ); - } + } } $this->executeSessionVariables( $adodb_obj ); } @@ -263,7 +263,7 @@ class ADOdbLoadBalancer if ( $this->pinned_connection_id !== FALSE ) { $connection_id = $this->pinned_connection_id; } else { - $connection_id = $this->getLoadBalancedConnection( $type ); + $connection_id = $this->getLoadBalancedConnection( $type ); } try { @@ -454,7 +454,7 @@ class ADOdbLoadBalancer return $adodb_obj->Execute( $sql, $inputarr ); } - return FALSE; + return FALSE; } /** @@ -524,7 +524,7 @@ class ADOdbLoadBalancer default: break; } - + $adodb_obj = $this->getConnection( $type, $pin_connection ); if ( is_object( $adodb_obj ) ) { $result = call_user_func_array( array( $adodb_obj, $method ), $this->makeValuesReferenced( $args ) ); |
