Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pfc: Fix bug in read when opening of local file fails #261

Merged
merged 1 commit into from
Jul 10, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/XrdFileCache/XrdFileCachePrefetch.cc
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ bool Prefetch::Open()
int res = m_output->Open(m_temp_filename.c_str(), O_RDWR, 0644, myEnv);
if ( res < 0)
{
clLog()->Error(XrdCl::AppMsg, "Prefetch::Open() can't get data-FD for %s %s", m_temp_filename.c_str(), lPath());
clLog()->Error(XrdCl::AppMsg, "Prefetch::Open() can't open local file %s", m_temp_filename.c_str());
delete m_output;
m_output = NULL;
return false;
Expand Down Expand Up @@ -951,7 +951,7 @@ Prefetch::Read(char *buff, off_t off, size_t size)
XrdSysCondVarHelper monitor(m_stateCond);

// AMT check if this can be done once during initalization
if (m_failed) return 0;
if (m_failed) return m_input.Read(buff, off, size);

if ( ! m_started)
{
Expand Down