Function migrate_kv_store_data
pub fn migrate_kv_store_data<S, T>(
source_store: &mut S,
target_store: &mut T,
) -> Result<(), Error>where
S: MigratableKVStore,
T: MigratableKVStore,
Expand description
Migrates all data from one store to another.
This operation assumes that target_store
is empty, i.e., any data present under copied keys
might get overriden. User must ensure source_store
is not modified during operation,
otherwise no consistency guarantees can be given.
Will abort and return an error if any IO operation fails. Note that in this case the
target_store
might get left in an intermediate state.