Skip to content

Commit

Permalink
early file delete fix for DAQSource
Browse files Browse the repository at this point in the history
  • Loading branch information
smorovic committed Jul 13, 2023
1 parent 7251a56 commit c242531
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion EventFilter/Utilities/interface/DAQSource.h
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ class DAQSource : public edm::RawInputSource {
std::list<std::pair<int, std::unique_ptr<InputFile>>> filesToDelete_;
std::mutex fileDeleteLock_;
std::vector<int> streamFileTracker_;
unsigned int nStreams_ = 0;
unsigned int checkEvery_ = 10;

//supervisor thread wakeup
Expand Down
2 changes: 1 addition & 1 deletion EventFilter/Utilities/src/DAQSource.cc
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ void DAQSource::read(edm::EventPrincipal& eventPrincipal) {
auto it = filesToDelete_.begin();
while (it != filesToDelete_.end()) {
bool fileIsBeingProcessed = false;
for (unsigned int i = 0; i < nStreams_; i++) {
for (unsigned int i = 0; i < streamFileTracker_.size(); i++) {
if (it->first == streamFileTracker_.at(i)) {
fileIsBeingProcessed = true;
break;
Expand Down

0 comments on commit c242531

Please sign in to comment.