File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
br/pkg/lightning/importer Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -1042,12 +1042,11 @@ func (tr *TableImporter) postProcess(
10421042 err = status .Error (codes .Unknown , "Checksum meets error." )
10431043 })
10441044 if err != nil {
1045- if rc .cfg .PostRestore .Checksum == config .OpLevelOptional {
1046- tr .logger .Warn ("do checksum failed, will skip this error and go on" , log .ShortError (err ))
1047- err = nil
1045+ if rc .cfg .PostRestore .Checksum != config .OpLevelOptional {
1046+ return false , err
10481047 }
1049- } else {
1050- return false , err
1048+ tr . logger . Warn ( "do checksum failed, will skip this error and go on" , log . ShortError ( err ))
1049+ err = nil
10511050 }
10521051 if remoteChecksum != nil {
10531052 err = tr .compareChecksum (remoteChecksum , localChecksum )
You can’t perform that action at this time.
0 commit comments