Skip to content

Commit

Permalink
XrdTpc: Do not call Write() on flush.
Browse files Browse the repository at this point in the history
Fixes #1373
  • Loading branch information
bbockelm committed Jan 24, 2021
1 parent e4a77f2 commit 27a1366
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/XrdTpc/XrdTpcState.cc
Expand Up @@ -200,6 +200,10 @@ int State::Write(char *buffer, size_t size) {
}

int State::Flush() {
if (m_push) {
return 0;
}

int retval = m_stream->Write(m_start_offset + m_offset, 0, 0, true);
if (retval == SFS_ERROR) {
m_error_buf = m_stream->GetErrorMessage();
Expand Down

0 comments on commit 27a1366

Please sign in to comment.