X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2FLocalFrontendHistory.java;h=d7c30121bf8a9323a362814ee7449870900acb84;hp=94c0965c007178828cdc04cdeea3170962abdbf8;hb=8f18717f60e58eebf726fe0611859311fa83df44;hpb=2634ed7138a343f051ff6452ccc7edd3abfc0c3a diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/LocalFrontendHistory.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/LocalFrontendHistory.java index 94c0965c00..d7c30121bf 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/LocalFrontendHistory.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/LocalFrontendHistory.java @@ -36,9 +36,8 @@ final class LocalFrontendHistory extends AbstractFrontendHistory { } static LocalFrontendHistory create(final String persistenceId, final ShardDataTree tree, - final LocalHistoryIdentifier historyId) { - return new LocalFrontendHistory(persistenceId, tree, tree.ensureTransactionChain(historyId), ImmutableMap.of(), - TreeRangeSet.create()); + final ShardDataTreeTransactionChain chain) { + return new LocalFrontendHistory(persistenceId, tree, chain, ImmutableMap.of(), TreeRangeSet.create()); } static LocalFrontendHistory recreate(final String persistenceId, final ShardDataTree tree, @@ -69,6 +68,12 @@ final class LocalFrontendHistory extends AbstractFrontendHistory { return FrontendReadWriteTransaction.createReady(this, id, mod); } + @Override + ShardDataTreeCohort createFailedCohort(final TransactionIdentifier id, final DataTreeModification mod, + final Exception failure) { + return chain.createFailedCohort(id, mod, failure); + } + @Override ShardDataTreeCohort createReadyCohort(final TransactionIdentifier id, final DataTreeModification mod) { return chain.createReadyCohort(id, mod);