Skip to content

Commit

Permalink
XrdApps::JCache: fix config reading bug for 'journal=true' from config
Browse files Browse the repository at this point in the history
file
  • Loading branch information
Andreas Joachim Peters committed Jun 12, 2024
1 parent 1211f52 commit e09d541
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/XrdApps/XrdClJCachePlugin/plugin/XrdClJCachePlugin.hh
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ public:
JCacheFile::SetVector(itv != config->end() ? itv->second == "true"
: false);
auto itj = config->find("journal");
JCacheFile::SetJournal(itj != config->end() ? itj->second == "false"
JCacheFile::SetJournal(itj != config->end() ? itj->second == "true"
: true);
auto itjson = config->find("json");
JCacheFile::SetJsonPath(itjson != config->end() ? itjson->second : "./");

auto its = config->find("summary");
JCacheFile::SetSummary(its != config->end() ? its->second != "false"
JCacheFile::SetSummary(its != config->end() ? its->second == "true"
: true);

if (const char *v = getenv("XRD_JCACHE_CACHE")) {
Expand Down

0 comments on commit e09d541

Please sign in to comment.