File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/ConnectionPool Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ internal ChannelDbConnectionPool(
6969 ProviderInfo = connectionPoolProviderInfo ;
7070 Identity = identity ;
7171 AuthenticationContexts = new ( ) ;
72+ MaxPoolSize = Convert . ToUInt32 ( PoolGroupOptions . MaxPoolSize ) ;
7273
7374 _connectionSlots = new ( MaxPoolSize ) ;
7475
@@ -124,7 +125,7 @@ public ConcurrentDictionary<
124125 /// <inheritdoc />
125126 public bool UseLoadBalancing => PoolGroupOptions . UseLoadBalancing ;
126127
127- private int MaxPoolSize => PoolGroupOptions . MaxPoolSize ;
128+ private uint MaxPoolSize { get ; }
128129 #endregion
129130
130131 #region Methods
@@ -353,7 +354,7 @@ public bool TryGetConnection(
353354 // attempts on the idle connection channel.
354355 if ( newConnection is not null )
355356 {
356- RemoveConnection ( newConnection , trackedInSlots : false ) ;
357+ RemoveConnection ( newConnection ) ;
357358 }
358359
359360 throw ;
You can’t perform that action at this time.
0 commit comments