Skip to content

Commit

Permalink
[XrdPfc] Replace EBADFD with EBADF.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmichal committed Aug 23, 2022
1 parent e81759a commit 9bf4c6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/XrdPfc/XrdPfcFile.cc
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ int File::Read(IO *io, char* iUserBuff, long long iUserOff, int iUserSize, ReadR
if (m_in_shutdown || io->m_in_detach)
{
m_state_cond.UnLock();
return m_in_shutdown ? -ENOENT : -EBADFD;
return m_in_shutdown ? -ENOENT : -EBADF;
}

// Shortcut -- file is fully downloaded.
Expand Down Expand Up @@ -680,7 +680,7 @@ int File::ReadV(IO *io, const XrdOucIOVec *readV, int readVnum, ReadReqRH *rh)
if (m_in_shutdown || io->m_in_detach)
{
m_state_cond.UnLock();
return m_in_shutdown ? -ENOENT : -EBADFD;
return m_in_shutdown ? -ENOENT : -EBADF;
}

// Shortcut -- file is fully downloaded.
Expand Down

0 comments on commit 9bf4c6d

Please sign in to comment.