diff --git a/fine-druid/src/com/fr/third/alibaba/druid/pool/DruidDataSource.java b/fine-druid/src/com/fr/third/alibaba/druid/pool/DruidDataSource.java index f077a8d4b..8fd1f3937 100644 --- a/fine-druid/src/com/fr/third/alibaba/druid/pool/DruidDataSource.java +++ b/fine-druid/src/com/fr/third/alibaba/druid/pool/DruidDataSource.java @@ -602,7 +602,7 @@ public class DruidDataSource extends DruidAbstractDataSource implements DruidDat this.connectProperties = properties; } - private synchronized void doSomethingAfterCreationThreadBreak() { + private synchronized void doSomethingBeforeCreationThreadBreak() { String threadName = "Druid-ConnectionPool-Create-" + System.identityHashCode(this) + this.getUrl(); createConnectionThread = new CreateConnectionThread(threadName); createConnectionThread.setStarted(false); @@ -2125,7 +2125,7 @@ public class DruidDataSource extends DruidAbstractDataSource implements DruidDat } catch (InterruptedException e) { lastCreateError = e; lastErrorTimeMillis = System.currentTimeMillis(); - DruidDataSource.this.doSomethingAfterCreationThreadBreak(); + DruidDataSource.this.doSomethingBeforeCreationThreadBreak(); break; } finally { lock.unlock(); @@ -2162,7 +2162,7 @@ public class DruidDataSource extends DruidAbstractDataSource implements DruidDat } catch (InterruptedException ignore) { } - DruidDataSource.this.doSomethingAfterCreationThreadBreak(); + DruidDataSource.this.doSomethingBeforeCreationThreadBreak(); break; } } catch (RuntimeException e) { @@ -2172,7 +2172,7 @@ public class DruidDataSource extends DruidAbstractDataSource implements DruidDat } catch (Error e) { LOG.error("create connection error", e); setFailContinuous(true); - DruidDataSource.this.doSomethingAfterCreationThreadBreak(); + DruidDataSource.this.doSomethingBeforeCreationThreadBreak(); break; }