Ayaka Koshibe

Fix for uninitialized TransactionManager in PartitionedDatabase

Reference: ONOS-2157

Change-Id: Idec1c2242dd53a31836c69339ba89988a19556bb
...@@ -232,6 +232,7 @@ public class DatabaseManager implements StorageService, StorageAdminService { ...@@ -232,6 +232,7 @@ public class DatabaseManager implements StorageService, StorageAdminService {
232 Futures.getUnchecked(status); 232 Futures.getUnchecked(status);
233 233
234 transactionManager = new TransactionManager(partitionedDatabase, consistentMapBuilder()); 234 transactionManager = new TransactionManager(partitionedDatabase, consistentMapBuilder());
235 + partitionedDatabase.setTransactionManager(transactionManager);
235 236
236 eventDispatcher = Executors.newSingleThreadExecutor( 237 eventDispatcher = Executors.newSingleThreadExecutor(
237 groupedThreads("onos/store/manager", "map-event-dispatcher")); 238 groupedThreads("onos/store/manager", "map-event-dispatcher"));
......
...@@ -418,7 +418,7 @@ public class PartitionedDatabase implements Database { ...@@ -418,7 +418,7 @@ public class PartitionedDatabase implements Database {
418 return subTransactions; 418 return subTransactions;
419 } 419 }
420 420
421 - protected void setTransactionManager(TransactionManager tranasactionManager) { 421 + protected void setTransactionManager(TransactionManager transactionManager) {
422 this.transactionManager = transactionManager; 422 this.transactionManager = transactionManager;
423 } 423 }
424 } 424 }
......