[pgsqlclient-checkins] SF.net SVN: pgsqlclient: [138] trunk/PostgreSqlClient/source/PostgreSql/Data/
Status: Inactive
Brought to you by:
carlosga_fb
From: <car...@us...> - 2006-05-17 17:34:04
|
Revision: 138 Author: carlosga_fb Date: 2006-05-17 10:33:44 -0700 (Wed, 17 May 2006) ViewCVS: http://svn.sourceforge.net/pgsqlclient/?rev=138&view=rev Log Message: ----------- 2006-05-17 Carlos Guzman Alvarez (car...@gm...) * Fixed bad references in PgConnectionPoolManager class. Modified Paths: -------------- trunk/PostgreSqlClient/source/PostgreSql/Data/PostgreSqlClient/PgPoolManager.cs Modified: trunk/PostgreSqlClient/source/PostgreSql/Data/PostgreSqlClient/PgPoolManager.cs =================================================================== --- trunk/PostgreSqlClient/source/PostgreSql/Data/PostgreSqlClient/PgPoolManager.cs 2006-05-15 13:26:30 UTC (rev 137) +++ trunk/PostgreSqlClient/source/PostgreSql/Data/PostgreSqlClient/PgPoolManager.cs 2006-05-17 17:33:44 UTC (rev 138) @@ -137,7 +137,7 @@ if (this.Pools.ContainsKey(hashCode)) { - pool = (PgConnectionPool)pools[hashCode]; + pool = (PgConnectionPool)this.Pools[hashCode]; } } @@ -154,7 +154,7 @@ if (pool == null) { - lock (this.pools.SyncRoot) + lock (this.Pools.SyncRoot) { int hashcode = connectionString.GetHashCode(); @@ -166,7 +166,7 @@ // Create the new connection pool pool = new PgConnectionPool(connectionString); - this.pools.Add(hashcode, pool); + this.Pools.Add(hashcode, pool); pool.EmptyPool += handler; } @@ -180,11 +180,11 @@ { lock (this.SyncObject) { - lock (this.pools.SyncRoot) + lock (this.Pools.SyncRoot) { - PgConnectionPool[] tempPools = new PgConnectionPool[this.pools.Count]; + PgConnectionPool[] tempPools = new PgConnectionPool[this.Pools.Count]; - this.pools.Values.CopyTo(tempPools, 0); + this.Pools.Values.CopyTo(tempPools, 0); foreach (PgConnectionPool pool in tempPools) { @@ -193,8 +193,8 @@ } // Clear Hashtables - this.pools.Clear(); - this.handlers.Clear(); + this.Pools.Clear(); + this.Handlers.Clear(); } } } @@ -203,13 +203,13 @@ { lock (this.SyncObject) { - lock (this.pools.SyncRoot) + lock (this.Pools.SyncRoot) { int hashCode = connectionString.GetHashCode(); - if (this.pools.ContainsKey(hashCode)) + if (this.Pools.ContainsKey(hashCode)) { - PgConnectionPool pool = (PgConnectionPool)this.pools[hashCode]; + PgConnectionPool pool = (PgConnectionPool)this.Pools[hashCode]; // Clear pool pool.Clear(); @@ -235,7 +235,7 @@ { int hashCode = (int)sender; - if (this.pools.ContainsKey(hashCode)) + if (this.Pools.ContainsKey(hashCode)) { PgConnectionPool pool = (PgConnectionPool)this.Pools[hashCode]; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |