@@ -31,8 +31,6 @@ class PoolingDataSource : NpgsqlDataSource
3131 /// </summary>
3232 private protected readonly NpgsqlConnector ? [ ] Connectors ;
3333
34- readonly NpgsqlMultiHostDataSource ? _parentPool ;
35-
3634 /// <summary>
3735 /// Reader side for the idle connector channel. Contains nulls in order to release waiting attempts after
3836 /// a connector has been physically closed/broken.
@@ -76,15 +74,12 @@ internal sealed override (int Total, int Idle, int Busy) Statistics
7674
7775 internal PoolingDataSource (
7876 NpgsqlConnectionStringBuilder settings ,
79- NpgsqlDataSourceConfiguration dataSourceConfig ,
80- NpgsqlMultiHostDataSource ? parentPool = null )
77+ NpgsqlDataSourceConfiguration dataSourceConfig )
8178 : base ( settings , dataSourceConfig )
8279 {
8380 if ( settings . MaxPoolSize < settings . MinPoolSize )
8481 throw new ArgumentException ( $ "Connection can't have 'Max Pool Size' { settings . MaxPoolSize } under 'Min Pool Size' { settings . MinPoolSize } ") ;
8582
86- _parentPool = parentPool ;
87-
8883 // We enforce Max Pool Size, so no need to to create a bounded channel (which is less efficient)
8984 // On the consuming side, we have the multiplexing write loop but also non-multiplexing Rents
9085 // On the producing side, we have connections being released back into the pool (both multiplexing and not)
@@ -400,11 +395,6 @@ void CloseConnector(NpgsqlConnector connector)
400395 UpdatePruningTimer ( ) ;
401396 }
402397
403- internal override bool TryRemovePendingEnlistedConnector ( NpgsqlConnector connector , Transaction transaction )
404- => _parentPool is null
405- ? base . TryRemovePendingEnlistedConnector ( connector , transaction )
406- : _parentPool . TryRemovePendingEnlistedConnector ( connector , transaction ) ;
407-
408398 #region Pruning
409399
410400 void UpdatePruningTimer ( )
0 commit comments