Skip to content

Commit

Permalink
Fix XCache compilation errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
osschar committed Oct 10, 2019
1 parent f4b342a commit 913b583
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/XrdFileCache/XrdFileCache.cc
Expand Up @@ -577,6 +577,7 @@ void Cache::dec_ref_cnt(File* f, bool high_debug)
}

delete f;
}
}
}

Expand Down Expand Up @@ -807,7 +808,7 @@ int Cache::Prepare(const char *curl, int oflags, mode_t mode)
{
XrdCl::URL url(curl);
std::string f_name = url.GetPath();
std::string i_name = f_name + Info::m_infoExtension;
std::string i_name = f_name + Info::s_infoExtension;

// Do not allow write access.
if (oflags & (O_WRONLY | O_RDWR))
Expand Down
4 changes: 3 additions & 1 deletion src/XrdFileCache/XrdFileCacheConfiguration.cc
Expand Up @@ -244,7 +244,9 @@ bool Cache::Config(const char *config_filename, const char *parameters)
}
if (sP.Total < 10ll << 20)
{
m_log.Emsg("Cache::ConfigParameters()", "available data space is less than 10 MB (can be due to a mistake in oss.localroot directive) for space ", m_configuration.m_d return false;
m_log.Emsg("Cache::ConfigParameters()", "available data space is less than 10 MB (can be due to a mistake in oss.localroot directive) for space ",
m_configuration.m_data_space.c_str());
return false;
}

m_configuration.m_diskTotalSpace = sP.Total;
Expand Down

0 comments on commit 913b583

Please sign in to comment.