Skip to content

Commit

Permalink
Revert "Reactive sql client pool in thread local"
Browse files Browse the repository at this point in the history
  • Loading branch information
geoand authored Jun 24, 2020
1 parent 3ffb034 commit 04663a7
Show file tree
Hide file tree
Showing 13 changed files with 0 additions and 338 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,4 @@ public class DataSourceReactiveRuntimeConfig {
*/
@ConfigItem
public PfxConfiguration keyCertificatePfx;

/**
* Experimental: use one connection pool per thread.
*/
@ConfigItem
public Optional<Boolean> threadLocal;
}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,6 @@ private DB2Pool initialize(Vertx vertx, DataSourceRuntimeConfig dataSourceRuntim
dataSourceReactiveDB2Config);
DB2ConnectOptions connectOptions = toConnectOptions(dataSourceRuntimeConfig, dataSourceReactiveRuntimeConfig,
dataSourceReactiveDB2Config);
if (dataSourceReactiveRuntimeConfig.threadLocal.isPresent() &&
dataSourceReactiveRuntimeConfig.threadLocal.get()) {
return new ThreadLocalDB2Pool(vertx, connectOptions, poolOptions);
}
return DB2Pool.pool(vertx, connectOptions, poolOptions);
}

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,6 @@ private MySQLPool initialize(Vertx vertx, DataSourceRuntimeConfig dataSourceRunt
dataSourceReactiveMySQLConfig);
MySQLConnectOptions mysqlConnectOptions = toMySQLConnectOptions(dataSourceRuntimeConfig,
dataSourceReactiveRuntimeConfig, dataSourceReactiveMySQLConfig);
if (dataSourceReactiveRuntimeConfig.threadLocal.isPresent() &&
dataSourceReactiveRuntimeConfig.threadLocal.get()) {
return new ThreadLocalMySQLPool(vertx, mysqlConnectOptions, poolOptions);
}
return MySQLPool.pool(vertx, mysqlConnectOptions, poolOptions);
}

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,6 @@ private PgPool initialize(Vertx vertx, DataSourceRuntimeConfig dataSourceRuntime
dataSourceReactivePostgreSQLConfig);
PgConnectOptions pgConnectOptions = toPgConnectOptions(dataSourceRuntimeConfig, dataSourceReactiveRuntimeConfig,
dataSourceReactivePostgreSQLConfig);
if (dataSourceReactiveRuntimeConfig.threadLocal.isPresent() &&
dataSourceReactiveRuntimeConfig.threadLocal.get()) {
return new ThreadLocalPgPool(vertx, pgConnectOptions, poolOptions);
}
return PgPool.pool(vertx, pgConnectOptions, poolOptions);
}

Expand Down

This file was deleted.

10 changes: 0 additions & 10 deletions integration-tests/reactive-pg-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,6 @@
<artifactId>quarkus-junit5</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-junit5-internal</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.rest-assured</groupId>
<artifactId>rest-assured</artifactId>
Expand All @@ -56,11 +51,6 @@
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
<resource>
<directory>src/test/resources</directory>
<filtering>true</filtering>
<targetPath>../test-classes</targetPath>
</resource>
</resources>
<plugins>
<plugin>
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 04663a7

Please sign in to comment.