dCache/dcache — pull request #809 by gbehrmann (2014-08-30 17:11:15+00:00)
Title: srm: Fix incomplete restore of "ready queued" jobs

When restoring jobs in the RQUEUED state, they are counted as a ready-queued
job, but the code fails to add them to the actual ready queue. As a consequence
such jobs do not appear in the output when listing the queue, and the queue
length and the count are different.

This patch resolves this issue. It is unknown for how long this bug has existed,
but until version 2.9 we didn't attempt to restore RQUEUED jobs and the bug
doesn't matter before that release.

Target: trunk
Request: 2.10
Reqeuest: 2.9
Require-notes: yes
Require-book: no
Acked-by: Tigran Mkrtchyan
Patch: https://rb.dcache.org/r/7230/
(cherry picked from commit d5b5f7849f4d596bf272eccaa9661317aba193b7)