Merge branch 'RED-10526' into 'main'
RED-10526: Set liquibase to 4.29.2 as 4.30.0 is 3 times slower See merge request fforesight/mongo-database-commons!20
This commit is contained in:
commit
88b64e7116
@ -25,8 +25,8 @@ val springBootVersion = "3.1.5"
|
||||
|
||||
dependencies {
|
||||
api("com.knecon.fforesight:tenant-commons:0.31.0")
|
||||
api("org.liquibase:liquibase-core:4.30.0")
|
||||
api("org.liquibase.ext:liquibase-mongodb:4.30.0")
|
||||
api("org.liquibase:liquibase-core:4.29.2")
|
||||
api("org.liquibase.ext:liquibase-mongodb:4.29.2")
|
||||
api("org.springframework.boot:spring-boot-starter-data-mongodb:${springBootVersion}")
|
||||
api("org.springframework.boot:spring-boot-starter-validation:${springBootVersion}")
|
||||
api("org.springframework.boot:spring-boot-configuration-processor:${springBootVersion}")
|
||||
|
||||
@ -19,7 +19,6 @@ import com.mongodb.client.ChangeStreamIterable;
|
||||
import com.mongodb.client.ClientSession;
|
||||
import com.mongodb.client.ListDatabasesIterable;
|
||||
import com.mongodb.client.MongoClient;
|
||||
import com.mongodb.client.MongoCluster;
|
||||
import com.mongodb.client.MongoDatabase;
|
||||
import com.mongodb.client.MongoIterable;
|
||||
import com.mongodb.connection.ClusterDescription;
|
||||
@ -46,76 +45,7 @@ public class MultiTenantMongoDBFactory extends SimpleMongoClientDatabaseFactory
|
||||
|
||||
private static MongoClient getBootstrapMongoClient() {
|
||||
return new MongoClient() {
|
||||
@Override
|
||||
public CodecRegistry getCodecRegistry() {
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public ReadPreference getReadPreference() {
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public WriteConcern getWriteConcern() {
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public ReadConcern getReadConcern() {
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Long getTimeout(TimeUnit timeUnit) {
|
||||
|
||||
return 0L;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public MongoCluster withCodecRegistry(CodecRegistry codecRegistry) {
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public MongoCluster withReadPreference(ReadPreference readPreference) {
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public MongoCluster withWriteConcern(WriteConcern writeConcern) {
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public MongoCluster withReadConcern(ReadConcern readConcern) {
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public MongoCluster withTimeout(long l, TimeUnit timeUnit) {
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public MongoDatabase getDatabase(String s) {
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user