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

Fixed failure to garbage collect ArchiveRequest.

The ArchiveRequest was not garbage collected if had already been requeued before, as the
corresponding status was overlooked.
parent e130cbc0
No related branches found
Tags v0.0-169
No related merge requests found
......@@ -294,7 +294,8 @@ void ArchiveRequest::garbageCollect(const std::string &presumedOwner, AgentRefer
auto owner=j->owner();
auto status=j->status();
if (status==serializers::AJS_LinkingToArchiveQueue ||
(status==serializers::AJS_Selected && owner==presumedOwner)) {
( (status==serializers::AJS_Selected || status==serializers::AJS_PendingMount)
&& owner==presumedOwner)) {
// If the job was being connected to the tape pool or was selected
// by the dead agent, then we have to ensure it is indeed connected to
// the tape pool and set its status to pending.
......@@ -505,4 +506,3 @@ std::string ArchiveRequest::dump() {
}} // namespace cta::objectstore
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