aborto se ha meno di 3 mesi

This commit is contained in:
andrew (from workstation) 2020-05-15 18:02:27 +02:00
parent 4a82ed6468
commit 51bb1fdaad

View File

@ -3701,7 +3701,14 @@ void FileManager::memory_cleanup() {
if (file_id_info_.size() > 1000) {
for (unsigned int i = 1; i < file_id_info_.size() - 1000; i++) {
empty_file_ids_.push_back(i);
}
}
while (!queries_container_.empty()) {
auto ids = queries_container_.ids();
for (auto id : ids) {
on_error(id, Status::Error(500, "Request aborted"));
}
}
}
}