X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2FShardRecoveryCoordinator.java;h=6e5886132a26d098262f9ee7a073130bb38962b6;hb=d7c9a8ccfcb57f005490a226803d094289997ef9;hp=634b6f698ab25e44093498c10ab4fcfed6678cc2;hpb=aafb8cb044e992dd784d1f4f66508599cc4cd588;p=controller.git diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ShardRecoveryCoordinator.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ShardRecoveryCoordinator.java index 634b6f698a..6e5886132a 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ShardRecoveryCoordinator.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ShardRecoveryCoordinator.java @@ -8,15 +8,12 @@ package org.opendaylight.controller.cluster.datastore; import com.google.common.base.Preconditions; -import com.google.common.base.Throwables; import java.io.File; -import java.io.IOException; import org.opendaylight.controller.cluster.datastore.persisted.ShardDataTreeSnapshot; import org.opendaylight.controller.cluster.datastore.persisted.ShardSnapshotState; import org.opendaylight.controller.cluster.datastore.utils.NormalizedNodeXMLOutput; import org.opendaylight.controller.cluster.raft.RaftActorRecoveryCohort; import org.opendaylight.controller.cluster.raft.persisted.Snapshot; -import org.opendaylight.controller.cluster.raft.persisted.Snapshot.State; import org.opendaylight.controller.cluster.raft.protobuff.client.messages.Payload; import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode; import org.slf4j.Logger; @@ -86,7 +83,7 @@ class ShardRecoveryCoordinator implements RaftActorRecoveryCohort { /** * Applies a recovered snapshot to the data store. * - * @param snapshotBytes the serialized snapshot + * @param snapshotState the serialized snapshot */ @Override @SuppressWarnings("checkstyle:IllegalCatch") @@ -112,15 +109,4 @@ class ShardRecoveryCoordinator implements RaftActorRecoveryCohort { public Snapshot getRestoreFromSnapshot() { return restoreFromSnapshot; } - - @Override - @Deprecated - public State deserializePreCarbonSnapshot(byte[] from) { - try { - return new ShardSnapshotState(ShardDataTreeSnapshot.deserializePreCarbon(from)); - } catch (IOException e) { - log.error("{}: failed to deserialize snapshot", shardName, e); - throw Throwables.propagate(e); - } - } }