fixed bug where we were referencing the null dbHolder instead of the instantiated one
This commit is contained in:
@@ -115,7 +115,7 @@ public class MongoDbUtils {
|
|||||||
else {
|
else {
|
||||||
holderToUse.addDB(db);
|
holderToUse.addDB(db);
|
||||||
}
|
}
|
||||||
TransactionSynchronizationManager.registerSynchronization(new MongoSynchronization(dbHolder, mongo));
|
TransactionSynchronizationManager.registerSynchronization(new MongoSynchronization(holderToUse, mongo));
|
||||||
holderToUse.setSynchronizedWithTransaction(true);
|
holderToUse.setSynchronizedWithTransaction(true);
|
||||||
if (holderToUse != dbHolder) {
|
if (holderToUse != dbHolder) {
|
||||||
TransactionSynchronizationManager.bindResource(mongo, holderToUse);
|
TransactionSynchronizationManager.bindResource(mongo, holderToUse);
|
||||||
|
|||||||
Reference in New Issue
Block a user