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%2FLeaderFrontendState.java;h=1ea3c53a5fdb7a5f7a2edcf972948ca5fdb8ef2d;hp=7e5addaefd5b8f8180ad4f39300af7b2f9b1e549;hb=cf52fd32a18a1d87084f1bda6482bdefb69f5a86;hpb=561acd5df914671e4f3f0736b4223861170fa3a7;ds=sidebyside diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/LeaderFrontendState.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/LeaderFrontendState.java index 7e5addaefd..1ea3c53a5f 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/LeaderFrontendState.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/LeaderFrontendState.java @@ -146,7 +146,7 @@ final class LeaderFrontendState implements Identifiable { // We have to send the response only after persistence has completed final ShardDataTreeTransactionChain chain = tree.ensureTransactionChain(historyId, () -> { LOG.debug("{}: persisted history {}", persistenceId, historyId); - envelope.sendSuccess(new LocalHistorySuccess(historyId, request.getSequence()), tree.ticker().read() - now); + envelope.sendSuccess(new LocalHistorySuccess(historyId, request.getSequence()), tree.readTime() - now); }); localHistories.put(historyId, LocalFrontendHistory.create(persistenceId, tree, chain));