Download priority 0

This commit is contained in:
Andrea Cavalli 2020-05-17 00:22:53 +02:00
parent 8379c120c8
commit c510cf3c81
1 changed files with 7 additions and 3 deletions

View File

@ -3708,9 +3708,13 @@ void FileManager::memory_cleanup() {
empty_file_ids_.push_back(i);
file_id_insert_time_[i] = INT64_MAX;
file_nodes_[file_id_info_[i].node_id_]->set_generate_priority(0, 0);
file_nodes_[file_id_info_[i].node_id_]->set_download_priority(0);
file_nodes_[file_id_info_[i].node_id_]->set_upload_priority(0);
auto &node = file_nodes_[file_id_info_[i].node_id_];
if (node != nullptr) {
node->set_upload_priority(0);
node->set_download_priority(0);
node->set_generate_priority(0, 0);
}
file_nodes_[file_id_info_[i].node_id_] = nullptr;
file_id_info_[i].node_id_ = 0;