Skip to content

Commit

Permalink
pool: do not list a repository during initialization
Browse files Browse the repository at this point in the history
we run inventory as pool startup procedure. If a
concurrent getInfo arrives, then it will block on
repository lock. This will block message thread as well.

Do not try to get number of files in the repository
if repository is not operational yet.

Target: trunk, 2.13, 2.12, 2.11, 2.10
Require-notes: yes
Require-book: no
Acked-by: Gerd Behrmann
(cherry picked from commit 5e19ef8)
Signed-off-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
  • Loading branch information
kofemann committed Jul 2, 2015
1 parent 7acc9fc commit 6db3f1a
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -774,7 +774,7 @@ public void getInfo(PrintWriter pw)
{
pw.println("State : " + _state);
try {
pw.println("Files : " + _store.list().size());
pw.println("Files : " + (_state == State.OPEN ?_store.list().size() : ""));
} catch (CacheException e) {
pw.println("Files : " + e.getMessage());
}
Expand Down

0 comments on commit 6db3f1a

Please sign in to comment.