Skip to content

Commit

Permalink
Continue if checksum mismatch (pingcap#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
huachaohuang authored and holys committed Apr 13, 2018
1 parent 8a28763 commit acdc838
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lightning/restore/restore.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ func (rc *RestoreControlloer) checksum(ctx context.Context) error {
if remoteChecksum.Checksum != localChecksum.Sum() || remoteChecksum.TotalKVs != localChecksum.SumKVS() || remoteChecksum.TotalBytes != localChecksum.SumSize() {
log.Errorf("[%s] checksum mismatched remote vs local => (checksum: %d vs %d) (total_kvs: %d vs %d) (total_bytes:%d vs %d)",
table, remoteChecksum.Checksum, localChecksum.Sum(), remoteChecksum.TotalKVs, localChecksum.SumKVS(), remoteChecksum.TotalBytes, localChecksum.SumSize())
continue
}

log.Infof("[%s] checksum pass", table)
Expand Down

0 comments on commit acdc838

Please sign in to comment.