Skip to content

Commit

Permalink
skip concurrent dump due to no valid smax or smin (pingcap#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiyfhust authored Nov 6, 2020
1 parent 5c6659f commit e6a26b3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dumpling/v4/export/ir_impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,9 @@ func splitTableDataIntoChunks(
return
}
if !smax.Valid || !smin.Valid {
// found no data
log.Warn("no data to dump", zap.String("schema", dbName), zap.String("table", tableName))
close(tableDataIRCh)
// smax and smin are not valid, but there can also be data to dump, so just skip split chunk logic.
log.Debug("skip concurrent dump due to no valid smax or smin", zap.String("schema", dbName), zap.String("table", tableName))
linear <- struct{}{}
return
}

Expand Down

0 comments on commit e6a26b3

Please sign in to comment.