From: Tomas Cere Date: Thu, 11 Jul 2019 10:19:47 +0000 (+0200) Subject: Change remaining SnapshotSelectionCriteria to prioritize timestamp X-Git-Tag: release/sodium~22 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=commitdiff_plain;h=2f606b3ee1b8e47977320374e37f3d5c1d546f9b;hp=20733d0406fb31b701e32ee74ee13dc8769a256c Change remaining SnapshotSelectionCriteria to prioritize timestamp These are also needed and were missed in the original run-through. Change-Id: Icede0673c580f793ffe81ccecf728c15dc6e83ca Signed-off-by: Tomas Cere --- diff --git a/opendaylight/md-sal/cds-access-client/src/main/java/org/opendaylight/controller/cluster/access/client/SavingClientActorBehavior.java b/opendaylight/md-sal/cds-access-client/src/main/java/org/opendaylight/controller/cluster/access/client/SavingClientActorBehavior.java index 8f6e991519..58a10776f4 100644 --- a/opendaylight/md-sal/cds-access-client/src/main/java/org/opendaylight/controller/cluster/access/client/SavingClientActorBehavior.java +++ b/opendaylight/md-sal/cds-access-client/src/main/java/org/opendaylight/controller/cluster/access/client/SavingClientActorBehavior.java @@ -39,7 +39,7 @@ final class SavingClientActorBehavior extends RecoveredClientActorBehavior> extends } else if (message instanceof SaveSnapshotSuccess) { LOG.debug("{}: got command: {}", persistenceId(), message); SaveSnapshotSuccess saved = (SaveSnapshotSuccess)message; - deleteSnapshots(new SnapshotSelectionCriteria(saved.metadata().sequenceNr(), + deleteSnapshots(new SnapshotSelectionCriteria(scala.Long.MaxValue(), saved.metadata().timestamp() - 1, 0L, 0L)); persisting = false; unstash();