From f9bead87cd0f21ae7c4f3a6886a1637bf65674de Mon Sep 17 00:00:00 2001 From: abel Date: Tue, 14 Aug 2018 11:00:50 +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 4ce27fdc1..f077a8d4b 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 createThreadChange() { + private synchronized void doSomethingAfterCreationThreadBreak() { 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.createThreadChange(); + DruidDataSource.this.doSomethingAfterCreationThreadBreak(); break; } finally { lock.unlock(); @@ -2162,7 +2162,7 @@ public class DruidDataSource extends DruidAbstractDataSource implements DruidDat } catch (InterruptedException ignore) { } - DruidDataSource.this.createThreadChange(); + DruidDataSource.this.doSomethingAfterCreationThreadBreak(); 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.createThreadChange(); + DruidDataSource.this.doSomethingAfterCreationThreadBreak(); break; }