FsTransactionMapper mapper = new FsTransactionMapper(subDbServiceHome, sync);
b.setTxnMapper(mapper);
// when creating a new BagIndexBridge, issue an empty commit to get a valid initial txn entry
b.commit(mapper.getHighestTxnId(), new HashMap<String, ApiBuffer>());
DbService dbService = b;
dbService = new ScoringDbService(dbService);
return dbService;
}
};
RebuildingDbService rebuilding = new RebuildingDbService(dataRoot, factory);
return rebuilding;