Skip to content

Commit e683d95

Browse files
author
lucaijun
committed
AJ-566: optimize the connection in connection pool can connect twice
1 parent 239792d commit e683d95

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/com/xxdb/SimpleDBConnectionPool.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import com.xxdb.data.BasicInt;
44
import org.slf4j.Logger;
55
import org.slf4j.LoggerFactory;
6-
76
import java.io.IOException;
87
import java.util.ArrayList;
98
import java.util.Objects;
@@ -157,18 +156,13 @@ boolean isClosed() {
157156

158157
class PoolEntry extends DBConnection {
159158
AtomicBoolean inUse = new AtomicBoolean(false);
160-
volatile boolean isFirstConnect = true;
161159
String connectionName;
162160

163161
PoolEntry(boolean useSSL, boolean compress, boolean usePython, String connectionName) {
164162
super(false, useSSL, compress, usePython);
165163
this.connectionName = connectionName;
166164
}
167165

168-
String getConnectionName() {
169-
return connectionName;
170-
}
171-
172166
boolean isIdle() {
173167
return !this.inUse.get();
174168
}

0 commit comments

Comments
 (0)