Skip to content

Commit

Permalink
Updated upload truncation logic
Browse files Browse the repository at this point in the history
  • Loading branch information
ciminelli committed Nov 1, 2023
1 parent 267fc90 commit e5a027a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin-server/go/pkg/file/upload_processor.go
Expand Up @@ -213,7 +213,7 @@ func processAndStoreUpload(upload *model.Upload, file *os.File, limit int) (uplo
in <- b
break
}
if limit > 0 && i >= limit {
if limit > 0 && i > limit {
// Truncate the upload if a limit is provided and there are more rows than the limit
tf.Log.Infow("Upload limit reached while processing upload", "upload_id", upload.ID, "limit", limit)
in <- b
Expand Down

0 comments on commit e5a027a

Please sign in to comment.