Skip to content

Commit

Permalink
dcache-core: fix admin command to query pins by state
Browse files Browse the repository at this point in the history
Motivation:

When querying pins by state, `count pins unpin-failed` also reports the number of pins in state PINNING, which is not intended.

Modification:
Result:

When asking for `count pins unpin-failed`, only report the number of pins in state FAILED_TO_UNPIN and not PINNING.

Target: master
Target: 7.2
Target: 7.1
Requires-notes: no
Requires-book: no
Patch: https://rb.dcache.org/r/13395/
Acked-by: Paul Millar
  • Loading branch information
lemora authored and mksahakyan committed Feb 1, 2022
1 parent a6d480d commit a267a7b
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -264,6 +264,7 @@ public String call() throws CommandException {
break;
case "unpin-failed":
criterion.state(FAILED_TO_UNPIN);
break;
case "all":
criterion.stateIsNot(PINNING);
requirePinning = true;
Expand Down

0 comments on commit a267a7b

Please sign in to comment.