fix
This commit is contained in:
parent
9674f8e9d5
commit
6789ab8c81
@ -3565,8 +3565,8 @@ void FileManager::memory_cleanup() {
|
|||||||
for (auto &file : node->file_ids_) {
|
for (auto &file : node->file_ids_) {
|
||||||
destroy_query(file.fast_get());
|
destroy_query(file.fast_get());
|
||||||
context_->destroy_file_source(file);
|
context_->destroy_file_source(file);
|
||||||
file_id_info_[file.fast_get()] = FileIdInfo();
|
|
||||||
empty_file_ids_.push_back(file.fast_get());
|
empty_file_ids_.push_back(file.fast_get());
|
||||||
|
file_id_info_[file.fast_get()] = FileIdInfo();
|
||||||
}
|
}
|
||||||
|
|
||||||
empty_node_ids_.push_back(i);
|
empty_node_ids_.push_back(i);
|
||||||
@ -3578,7 +3578,6 @@ void FileManager::memory_cleanup() {
|
|||||||
/* DESTROY INVALID file_hash_to_file_id_ */
|
/* DESTROY INVALID file_hash_to_file_id_ */
|
||||||
for (const auto &pair : file_hash_to_file_id_) {
|
for (const auto &pair : file_hash_to_file_id_) {
|
||||||
auto &file = file_id_info_[pair.second.fast_get()];
|
auto &file = file_id_info_[pair.second.fast_get()];
|
||||||
|
|
||||||
if (file_nodes_[file.node_id_] == nullptr) {
|
if (file_nodes_[file.node_id_] == nullptr) {
|
||||||
file_hash_to_file_id_.erase(pair.first);
|
file_hash_to_file_id_.erase(pair.first);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user