Skip to content

Commit

Permalink
Run migration till the end when initting
Browse files Browse the repository at this point in the history
  • Loading branch information
perekopskiy committed Oct 12, 2023
1 parent 018a71b commit 1d6fda4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/lib/state/src/rocksdb/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,10 @@ impl RocksdbStorage {
"Secondary storage for L1 batch #{latest_l1_batch_number} initialized, size is {estimated_size}"
);

self.save_missing_enum_indices(conn).await;
// Enum indices must be at the storage. Run migration till the end.
while self.enum_migration_start_from().is_some() {
self.save_missing_enum_indices(conn).await;
}
}

async fn apply_storage_logs(
Expand Down

0 comments on commit 1d6fda4

Please sign in to comment.