Skip to content
Snippets Groups Projects
Commit 6ec985db authored by Sonia Zorba's avatar Sonia Zorba
Browse files

Busy flag has always to be set to true during an upload

parent c9615da5
Branches
Tags
No related merge requests found
...@@ -124,9 +124,7 @@ public class PutFileController extends FileController { ...@@ -124,9 +124,7 @@ public class PutFileController extends FileController {
} }
try { try {
if (jobId != null) {
fileDAO.setBusy(fileInfo.getNodeId(), true); fileDAO.setBusy(fileInfo.getNodeId(), true);
}
Files.copy(is, file.toPath()); Files.copy(is, file.toPath());
if (fileInfo.getContentType() == null) { if (fileInfo.getContentType() == null) {
...@@ -151,11 +149,9 @@ public class PutFileController extends FileController { ...@@ -151,11 +149,9 @@ public class PutFileController extends FileController {
} }
throw ex; throw ex;
} finally { } finally {
if (jobId != null) {
fileDAO.setBusy(fileInfo.getNodeId(), false); fileDAO.setBusy(fileInfo.getNodeId(), false);
} }
} }
}
/** /**
* Handles duplicate file uploads generating a new non existent path. This * 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