Skip to content
Snippets Groups Projects
Commit 2b2915e0 authored by Nicola Fulvio Calabria's avatar Nicola Fulvio Calabria
Browse files

#3824: busy status management fixed according to task request

parent ff424e96
No related branches found
No related tags found
No related merge requests found
Pipeline #1176 passed
......@@ -129,7 +129,9 @@ public class PutFileController extends FileController {
}
try {
if(jobId != null){
fileDAO.setBusy(fileInfo.getNodeId(), true);
}
Files.copy(is, file.toPath());
Long fileSize = Files.size(file.toPath());
String md5Checksum = makeMD5Checksum(file);
......@@ -149,9 +151,11 @@ public class PutFileController extends FileController {
}
throw ex;
} finally {
if(jobId != null){
fileDAO.setBusy(fileInfo.getNodeId(), false);
}
}
}
/**
* Handles duplicate file uploads generating a new non existent path. This
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment