Skip to content

Commit

Permalink
pool: cms info should display configured checkums
Browse files Browse the repository at this point in the history
Motivation:
The checksum module info commend doesn't include the configured digest
algorithms, which makes the configuration not obvious.

Modification:
Update cms info to provide enabled digests.

Result:
better overview of checksum configuration

Acked-by: Lea Morschel
Target: master
Require-book: no
Require-notes: yes
  • Loading branch information
kofemann committed Oct 11, 2023
1 parent c65c007 commit 42cc3d4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* dCache - http://www.dcache.org/
*
* Copyright (C) 2007-2022 Deutsches Elektronen-Synchrotron
* Copyright (C) 2007-2023 Deutsches Elektronen-Synchrotron
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
Expand Down Expand Up @@ -226,6 +226,7 @@ private synchronized String getPolicies() {
StringBuilder sb = new StringBuilder();

sb.append(" Policies :\n").
append(" enabled digests: " ).append(defaultChecksumTypes()).append("\n").
append(" on read : ").append(getPolicy(ON_READ)).append("\n").
append(" on write : ").append(getPolicy(ON_WRITE)).append("\n").
append(" on flush : ").append(getPolicy(ON_FLUSH)).append("\n").
Expand Down

0 comments on commit 42cc3d4

Please sign in to comment.