Skip to content

Commit

Permalink
Do not migrate cells on readonly
Browse files Browse the repository at this point in the history
  • Loading branch information
tvorogme committed Sep 26, 2024
1 parent 20bb97d commit 804a4d0
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
Empty file.
Empty file.
2 changes: 1 addition & 1 deletion validator/db/celldb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ void CellDbIn::alarm() {
flush_db_stats();
}

if (migrate_after_ && migrate_after_.is_in_past()) {
if (migrate_after_ && migrate_after_.is_in_past() && !read_only_) {
migrate_cells();
}
if (migration_stats_ && migration_stats_->end_at_.is_in_past()) {
Expand Down

0 comments on commit 804a4d0

Please sign in to comment.