reverto a 5m

This commit is contained in:
andrew (from workstation) 2020-05-15 23:18:58 +02:00
parent a56d83fa61
commit 9dd4be83a8

View File

@ -3704,7 +3704,7 @@ void FileManager::memory_cleanup() {
auto time = std::time(nullptr);
for (unsigned int i = 1; i < file_id_info_.size(); i++) {
if (time - file_id_insert_time_[i] > 60 * 1) {
if (time - file_id_insert_time_[i] > 60 * 5) {
empty_file_ids_.push_back(i);
file_id_insert_time_[i] = INT64_MAX;
file_nodes_[file_id_info_[i].node_id_] = nullptr;