Skip to content
Snippets Groups Projects
Commit 17f63745 authored by Frank Winklmeier's avatar Frank Winklmeier
Browse files

Merge branch 'AthenaIO_StreamExit' into 'master'

Make OutputStream fail after FATAL.

See merge request atlas/athena!32091
parents 1771f57d 10a14f39
No related branches found
No related tags found
No related merge requests found
......@@ -598,7 +598,7 @@ StatusCode AthenaOutputStream::write() {
// Connect the output file to the service
if (!streamer->connectOutput(outputFN).isSuccess()) {
ATH_MSG_ERROR("Could not connectOutput");
ATH_MSG_FATAL("Could not connectOutput");
return StatusCode::FAILURE;
}
ATH_MSG_DEBUG("connectOutput done for " + outputFN);
......@@ -616,9 +616,10 @@ StatusCode AthenaOutputStream::write() {
ATH_MSG_FATAL("commitOutput failed.");
failed = true;
}
if (!failed) {
m_events++;
if (failed) {
return(StatusCode::FAILURE);
}
m_events++;
return(StatusCode::SUCCESS);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment