From a82d7332c50dc2f1c89ada4afb56bb49f388a614 Mon Sep 17 00:00:00 2001 From: abel Date: Tue, 14 Aug 2018 11:08:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=80=E4=B8=8B=E5=91=BD?= =?UTF-8?q?=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/fr/third/alibaba/druid/pool/DruidDataSource.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; }