Expand description

This is an example implementation of the RaftStorage trait for an application that needs to upgrade from openraft v0.7 to v0.8.

Openraft v0.8 introduced several changes to the data types related to persistent data. This example demonstrates how to upgrade the implementation of the storage without requiring any modifications to the on-disk data, using the openraft::compat compatibility layer.

This is a modified version of rocksstore that tries to deserialize data into a compatible type, such as compat07::LogId, when reading data from rocksdb, and then upgrade it to the latest format. You can find usages of compat07::* that are used in this implementation to provide compatibility with older data.



Type Definitions