Skip to content
Permalink
Browse files
FC-290 - Pool connection validation switch
  • Loading branch information
shawnmckinney committed Mar 21, 2021
1 parent 359a5f4 commit b4fe6deb77e7ecb9ce4517cd1cbfcee4b91aed00
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 16 deletions.
@@ -115,10 +115,6 @@ admin.max.conn=10
user.min.conn=1
user.max.conn=10

# Used for slapd logger connection pool.
min.log.conn=1
max.log.conn=3

# Applies to all pools, connection validated on retrieval with dummy ldapsearch. (default is false)
all.validate.conn=false

@@ -274,18 +274,10 @@ public int getInt( String key, int defaultValue )
int value = defaultValue;
try
{

if ( config != null )
{
try
{
value = config.getInt( key, defaultValue );
LOG.debug( "getInt name [{}] value [{}]", key, value );
}
catch (org.apache.commons.configuration.ConversionException e )
{
LOG.debug( "getInt name [{}], conversion exception using default [{}]", key, defaultValue );
}
value = config.getInt( key, defaultValue );
LOG.debug( "getInt name [{}] value [{}]", key, value );
}
else
{
@@ -294,7 +286,7 @@ public int getInt( String key, int defaultValue )
}
catch (org.apache.commons.configuration.ConversionException e)
{
LOG.debug( "getInt can't read prop [{}], using default [{}], exception [{}]", key, defaultValue, e );
LOG.debug( "getInt name [{}], conversion exception using default [{}]", key, defaultValue );
}
return value;
}
@@ -318,7 +310,6 @@ public boolean getBoolean( String key )
else
{
LOG.warn( "getBoolean invalid config, can't read prop [{}], using default [{}]", key, false );

}
}
catch (java.util.NoSuchElementException e )

0 comments on commit b4fe6de

Please sign in to comment.