Skip to content

Commit

Permalink
substore: add TODO for migration gating
Browse files Browse the repository at this point in the history
  • Loading branch information
erwanor committed Dec 5, 2024
1 parent 516772c commit c46431c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/store/substore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,8 @@ impl SubstoreStorage {
let skip_key = |(keyhash, _key, some_value)| (keyhash, some_value);

let (root_hash, batch) = if perform_migration {
// TODO(erwan): this should be feature-gated behind `migration`
// activating `jmt/migration` more judiciously.
jmt.append_value_set(unwritten_changes.into_iter().map(skip_key), write_version)?
} else {
jmt.put_value_set(unwritten_changes.into_iter().map(skip_key), write_version)?
Expand Down

0 comments on commit c46431c

Please sign in to comment.