fineract-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From my...@apache.org
Subject [fineract-cn-mariadb] 10/14: Local vs bound variable. Minor fix.
Date Mon, 22 Jan 2018 15:11:59 GMT
This is an automated email from the ASF dual-hosted git repository.

myrle pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/fineract-cn-mariadb.git

commit 38683427520702d65c30ee232a4587a95a54e9d7
Author: myrle-krantz <mkrantz@mifos.org>
AuthorDate: Mon May 15 17:18:45 2017 +0200

    Local vs bound variable.  Minor fix.
---
 .../io/mifos/core/mariadb/domain/ContextAwareRoutingDataSource.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/io/mifos/core/mariadb/domain/ContextAwareRoutingDataSource.java
b/src/main/java/io/mifos/core/mariadb/domain/ContextAwareRoutingDataSource.java
index 4614d1a..f70457a 100644
--- a/src/main/java/io/mifos/core/mariadb/domain/ContextAwareRoutingDataSource.java
+++ b/src/main/java/io/mifos/core/mariadb/domain/ContextAwareRoutingDataSource.java
@@ -65,8 +65,8 @@ public final class ContextAwareRoutingDataSource extends AbstractRoutingDataSour
     final String currentLookupKey = this.determineCurrentLookupKey().toString();
 
     this.dynamicDataSources.computeIfAbsent(currentLookupKey, (key) -> {
-      this.logger.info("Creating new dynamic data source for {}.", currentLookupKey);
-      final Tenant tenant = new Tenant(currentLookupKey);
+      this.logger.info("Creating new dynamic data source for {}.", key);
+      final Tenant tenant = new Tenant(key);
       this.readAdditionalTenantInformation(tenant);
       final BoneCPDataSource tenantDataSource = new BoneCPDataSource();
       tenantDataSource.setDriverClass(tenant.getDriverClass());

-- 
To stop receiving notification emails like this one, please contact
myrle@apache.org.

Mime
View raw message