Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for initial dirty migrate
Browse files Browse the repository at this point in the history
jimmyaxod committed Nov 4, 2024
1 parent e9f0d72 commit 01825b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/storage/migrator/sync.go
Original file line number Diff line number Diff line change
@@ -158,6 +158,7 @@ func (s *Syncer) Sync(syncAllFirst bool, continuous bool) (*MigrationProgress, e
s.blockStatusLock.Lock()
if !s.blockStatus[b.Block].Set {
s.blockStatus[b.Block].Set = true
s.blockStatus[b.Block].CurrentID = id
s.blockStatus[b.Block].CurrentHash = hash
} else if id > s.blockStatus[b.Block].CurrentID {
s.blockStatus[b.Block].CurrentID = id

0 comments on commit 01825b5

Please sign in to comment.