From b3cd5486d60d6092cb25fc7ccf39c4d6624a24f2 Mon Sep 17 00:00:00 2001 From: t00thpick1 Date: Sun, 19 Oct 2014 01:54:56 -0400 Subject: [PATCH] Actually use settings --- .../java/com/gmail/nossr50/database/SQLDatabaseManager.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/database/SQLDatabaseManager.java b/src/main/java/com/gmail/nossr50/database/SQLDatabaseManager.java index 368d4b216..d0f685654 100644 --- a/src/main/java/com/gmail/nossr50/database/SQLDatabaseManager.java +++ b/src/main/java/com/gmail/nossr50/database/SQLDatabaseManager.java @@ -64,7 +64,6 @@ public final class SQLDatabaseManager implements DatabaseManager { poolProperties.setMaxIdle(Config.getInstance().getMySQLMaxPoolSize(PoolIdentifier.MISC)); poolProperties.setMaxActive(Config.getInstance().getMySQLMaxConnections(PoolIdentifier.MISC)); poolProperties.setInitialSize(0); - poolProperties.setMaxIdle(400); poolProperties.setMaxWait(-1); poolProperties.setRemoveAbandoned(true); poolProperties.setRemoveAbandonedTimeout(60); @@ -80,7 +79,6 @@ public final class SQLDatabaseManager implements DatabaseManager { poolProperties.setInitialSize(0); poolProperties.setMaxIdle(Config.getInstance().getMySQLMaxPoolSize(PoolIdentifier.SAVE)); poolProperties.setMaxActive(Config.getInstance().getMySQLMaxConnections(PoolIdentifier.SAVE)); - poolProperties.setMaxIdle(400); poolProperties.setMaxWait(-1); poolProperties.setRemoveAbandoned(true); poolProperties.setRemoveAbandonedTimeout(60); @@ -96,7 +94,6 @@ public final class SQLDatabaseManager implements DatabaseManager { poolProperties.setInitialSize(0); poolProperties.setMaxIdle(Config.getInstance().getMySQLMaxPoolSize(PoolIdentifier.LOAD)); poolProperties.setMaxActive(Config.getInstance().getMySQLMaxConnections(PoolIdentifier.LOAD)); - poolProperties.setMaxIdle(400); poolProperties.setMaxWait(-1); poolProperties.setRemoveAbandoned(true); poolProperties.setRemoveAbandonedTimeout(60);