Skip to content

Commit

Permalink
Merge pull request #1385 from bbockelm/xrdtpc_no_flush_on_push
Browse files Browse the repository at this point in the history
XrdTpc: Do not call Write() on flush.
  • Loading branch information
abh3 committed Jan 25, 2021
2 parents e4a77f2 + 27a1366 commit 099eab3
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 099eab3

Please sign in to comment.