Skip to content
Snippets Groups Projects
Commit 6856125c authored by Eric Cano's avatar Eric Cano
Browse files

Added protection against zero-length files in scheduler.

parent 1f5b2711
No related branches found
No related tags found
No related merge requests found
......@@ -122,6 +122,9 @@ void Scheduler::queueArchiveWithGivenId(const uint64_t archiveFileId, const std:
cta::utils::Timer t;
using utils::postEllipsis;
using utils::midEllipsis;
if (!request.fileSize)
throw cta::exception::Exception("Rejecting archive request for zero-length file.");
const auto queueCriteria = m_catalogue.getArchiveFileQueueCriteria(instanceName, request.storageClass,
request.requester);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment