This adds an extended version of the existing Machine:snapshot_installed(SnapMeta, NewState) callback which adds parameters for the old state: the state of the machine before the snapshot was installed and also its version since the snapshot installation might cause a version bump.
This is meant for any machine that needs to diff the old and new states. For example Khepri needs this (see rabbitmq/khepri#290) to update its projections when either the projections change or any part of the tree which is covered by a projection's pattern.
This adds an extended version of the existing
Machine:snapshot_installed(SnapMeta, NewState)
callback which adds parameters for the old state: the state of the machine before the snapshot was installed and also its version since the snapshot installation might cause a version bump.This is meant for any machine that needs to diff the old and new states. For example Khepri needs this (see rabbitmq/khepri#290) to update its projections when either the projections change or any part of the tree which is covered by a projection's pattern.