Skip to content

Commit

Permalink
fix issue with early deletion of files (was not checking full vector
Browse files Browse the repository at this point in the history
range)
  • Loading branch information
smorovic committed Jul 13, 2023
1 parent 058ca1a commit 7251a56
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/FedRawDataInputSource.h
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@ class FedRawDataInputSource : public edm::RawInputSource {
std::list<std::pair<int, std::string>> fileNamesToDelete_;
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/FedRawDataInputSource.cc
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,7 @@ void FedRawDataInputSource::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 7251a56

Please sign in to comment.