Function persist::storage::check_meta_version_maybe_delete_data[][src]

pub fn check_meta_version_maybe_delete_data<B: Blob>(
    b: &mut B
) -> Result<(), Error>
Expand description

Sanity check whether we can decode the Blob’s persisted meta object, and delete all data if the encoded version is less than what the current implementation supports.

TODO: this is a hack and we will need to get rid of this once we have a proper backwards compatibility policy.