File tree Expand file tree Collapse file tree 4 files changed +8
-2
lines changed Expand file tree Collapse file tree 4 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -233,6 +233,7 @@ namespace evf {
233
233
void setTMicrostate (FastMonState::Microstate m);
234
234
235
235
static unsigned int getTID () { return tbb::this_task_arena::current_thread_index (); }
236
+ bool streamIsIdle (unsigned int i) const ;
236
237
237
238
private:
238
239
void doSnapshot (const unsigned int ls, const bool isGlobalEOL);
Original file line number Diff line number Diff line change @@ -649,7 +649,7 @@ void DAQSource::fileDeleter() {
649
649
for (unsigned int i = 0 ; i < streamFileTracker_.size (); i++) {
650
650
if (it->first == streamFileTracker_.at (i)) {
651
651
// only skip if LS is open
652
- if (fileLSOpen) {
652
+ if (fileLSOpen && (!fms_ || !fms_-> streamIsIdle (i)) ) {
653
653
fileIsBeingProcessed = true ;
654
654
break ;
655
655
}
Original file line number Diff line number Diff line change @@ -1052,4 +1052,9 @@ namespace evf {
1052
1052
fmt_->jsonMonitor_ ->snap (ls);
1053
1053
}
1054
1054
1055
+ bool FastMonitoringService::streamIsIdle (unsigned int i) const {
1056
+ auto ms = microstate_.at (i);
1057
+ return ms == getmIdle ();
1058
+ }
1059
+
1055
1060
} // end namespace evf
Original file line number Diff line number Diff line change @@ -727,7 +727,7 @@ void FedRawDataInputSource::fileDeleter() {
727
727
for (unsigned int i = 0 ; i < streamFileTracker_.size (); i++) {
728
728
if (it->first == streamFileTracker_.at (i)) {
729
729
// only skip if LS is open
730
- if (fileLSOpen) {
730
+ if (fileLSOpen && (!fms_ || !fms_-> streamIsIdle (i)) ) {
731
731
fileIsBeingProcessed = true ;
732
732
break ;
733
733
}
You can’t perform that action at this time.
0 commit comments