Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
scdaq
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
scouting-demonstrator
scdaq
Commits
1849d6e6
Commit
1849d6e6
authored
2 years ago
by
Emilio Meschi
Committed by
Thomas Owen James
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
fix closing of file at end of run
parent
762fb1b8
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/OutputByOrbit.cc
+9
-2
9 additions, 2 deletions
src/OutputByOrbit.cc
with
9 additions
and
2 deletions
src/OutputByOrbit.cc
+
9
−
2
View file @
1849d6e6
...
...
@@ -33,11 +33,18 @@ void OutputByOrbitStream::OutputFixedOrbits(Slice &out) {
control
.
output_force_write
)
{
// i.e should be writing data
n
=
fwrite
(
out
.
begin
(),
1
,
out
.
size
(),
output_file_handler_
.
getFile
(
control
.
run_number
,
index
));
current_file_size
+=
n
;
}
else
if
(
output_file_handler_
.
hasFile
())
{
// the run has been stopped so drop but first check if there is a last
// file to close
LOG
(
TRACE
)
<<
"the run was stopped. queueing the last file for close and "
"rename "
;
output_file_handler_
.
enqueue_current_file_for_close_and_move_maybe
();
}
current_file_size
+=
n
;
}
else
{
// i.e should not currently be writing data - but then we should
// never get here in the first place
output_file_handler_
.
enqueue_current_file_for_close_and_move_maybe
()
;
LOG
(
TRACE
)
<<
"got an empty slice "
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment