=per #23042 Recover.none should immediately carry None snapshot crit (#23043)

* =per #23042 Recover.none should immediately carry None snapshot crit

* Update migration-guide-2.4.x-2.5.x.md
This commit is contained in:
Konrad `ktoso` Malawski 2017-05-29 16:04:43 +02:00 committed by GitHub
parent 2449aeeb14
commit 1f63ebf911
2 changed files with 4 additions and 3 deletions

View file

@ -100,7 +100,7 @@ object Recovery {
* Convenience method for skipping recovery in [[PersistentActor]].
* @see [[Recovery]]
*/
val none: Recovery = Recovery(toSequenceNr = 0L)
val none: Recovery = Recovery(toSequenceNr = 0L, fromSnapshot = SnapshotSelectionCriteria.None)
}
final class RecoveryTimedOut(message: String) extends RuntimeException(message) with NoStackTrace

View file

@ -22,9 +22,10 @@ object SnapshotRecoveryLocalStoreSpec {
}
class LoadSnapshotTestPersistentActor(name: String, probe: ActorRef) extends NamedPersistentActor(name)
with TurnOffRecoverOnStart
with ActorLogging {
override def recovery = Recovery(toSequenceNr = 0)
def receiveCommand = {
case _
}
@ -58,4 +59,4 @@ class SnapshotRecoveryLocalStoreSpec extends PersistenceSpec(PersistenceSpec.con
}
}
}
}