Skip to content

Commit

Permalink
fix for IQSS#9601
Browse files Browse the repository at this point in the history
  • Loading branch information
qqmyers committed May 19, 2023
1 parent bc42df0 commit 57e984b
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -332,9 +332,7 @@ public List<DataFile> saveAndAddFilesToDataset(DatasetVersion version,
} catch (IOException e) {
logger.warning("Error getting ingest limit for file: " + dataFile.getIdentifier() + " : " + e.getMessage());
}
if (unattached) {
dataFile.setOwner(null);
}

if (savedSuccess && belowLimit) {
// These are all brand new files, so they should all have
// one filemetadata total. -- L.A.
Expand Down Expand Up @@ -388,6 +386,9 @@ public List<DataFile> saveAndAddFilesToDataset(DatasetVersion version,
dataFile.setContentType(FileUtil.MIME_TYPE_TSV);
}
}
if (unattached) {
dataFile.setOwner(null);
}
// ... and let's delete the main temp file if it exists:
if(tempLocationPath!=null) {
try {
Expand Down

0 comments on commit 57e984b

Please sign in to comment.