Ayaka Koshibe

Fix for uninitialized TransactionManager in PartitionedDatabase

Reference: ONOS-2157

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