Download priority 0
This commit is contained in:
parent
8379c120c8
commit
c510cf3c81
|
@ -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;
|
||||
|
|
Reference in New Issue