Commit a5a74859 authored by Eric Cano's avatar Eric Cano
Browse files

Added protection against zero-length files in scheduler.

parent bfa7fd76
......@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment